HSL(62, 50%, 22%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔵 Cool
Temperature
3500K
CSS Class
bg-[hsl(62,50%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(62, 50%, 22%) | color: hsl(62, 50%, 22%) | |
| HEX | #52541C | color: #52541C | |
| RGB | rgb(82, 84, 28) | color: rgb(82, 84, 28) | |
| CMYK | cmyk(2%, 0%, 67%, 67%) | — | |
| HSV | hsv(62, 67%, 33%) | — | |
| HWB | hwb(62 11% 67%) | color: hwb(62 11% 67%) | |
| OKLCH | oklch(0.4316 0.0771 111.16) | color: oklch(0.4316 0.0771 111.16) | |
| Lab | lab(34.43 -9.21 31.48) | color: lab(34.43 -9.21 31.48) | |
| LCH | lch(34.43 32.8 106.31) | color: lch(34.43 32.8 106.31) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#53532A — rgb(83, 83, 42)
Deuteranopia (Green-blind)
#53532D — rgb(83, 83, 45)
Tritanopia (Blue-blind)
#523437 — rgb(82, 52, 55)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(62, 50%, 22%);
text
color: hsl(62, 50%, 22%);
border
border: 2px solid hsl(62, 50%, 22%);
gradient light
background: linear-gradient(to right, hsl(62, 50%, 42%), hsl(62, 50%, 22%));
gradient dark
background: linear-gradient(to right, hsl(62, 50%, 22%), hsl(62, 50%, 2%))
hex
background-color: #52541C;
tailwind
bg-[hsl(62,50%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(62, 50%, 22%, 0.4);
css variable
--color-primary: hsl(62, 50%, 22%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(62, 50%, 22%)?
HEX: #52541C | RGB: rgb(82, 84, 28) | CMYK: 2%, 0%, 67%, 67% | HSV: 62°, 67%, 33%. Copy any format from the conversion table above.
What colors go well with #52541C?
The complementary color is HSL(242, 50%, 22%). For a triadic harmony, use hues 62°, 182°, and 302°. For analogous combinations, try hues 32° and 92°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(62, 50%, 22%) in CSS?
As HSL: color: hsl(62, 50%, 22%); — As HEX: color: #52541C; — As RGB: color: rgb(82, 84, 28); — Tailwind CSS: bg-[hsl(62,50%,22%)] — CSS variable: --color-primary: hsl(62, 50%, 22%);