HSL(52, 75%, 21%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(52,75%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(52, 75%, 21%) | color: hsl(52, 75%, 21%) | |
| HEX | #5E530D | color: #5E530D | |
| RGB | rgb(94, 83, 13) | color: rgb(94, 83, 13) | |
| CMYK | cmyk(0%, 12%, 86%, 63%) | — | |
| HSV | hsv(52, 86%, 37%) | — | |
| HWB | hwb(52 5% 63%) | color: hwb(52 5% 63%) | |
| OKLCH | oklch(0.4401 0.0855 99.64) | color: oklch(0.4401 0.0855 99.64) | |
| Lab | lab(35.19 -3.55 38.97) | color: lab(35.19 -3.55 38.97) | |
| LCH | lch(35.19 39.13 95.21) | color: lch(35.19 39.13 95.21) |
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)
#59591E — rgb(89, 89, 30)
Deuteranopia (Green-blind)
#5A5B22 — rgb(90, 91, 34)
Tritanopia (Blue-blind)
#5D2B2E — rgb(93, 43, 46)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(52, 75%, 21%);
text
color: hsl(52, 75%, 21%);
border
border: 2px solid hsl(52, 75%, 21%);
gradient light
background: linear-gradient(to right, hsl(52, 75%, 41%), hsl(52, 75%, 21%));
gradient dark
background: linear-gradient(to right, hsl(52, 75%, 21%), hsl(52, 75%, 1%))
hex
background-color: #5E530D;
tailwind
bg-[hsl(52,75%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(52, 75%, 21%, 0.4);
css variable
--color-primary: hsl(52, 75%, 21%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(52, 75%, 21%)?
HEX: #5E530D | RGB: rgb(94, 83, 13) | CMYK: 0%, 12%, 86%, 63% | HSV: 52°, 86%, 37%. Copy any format from the conversion table above.
What colors go well with #5E530D?
The complementary color is HSL(232, 75%, 21%). For a triadic harmony, use hues 52°, 172°, and 292°. For analogous combinations, try hues 22° and 82°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(52, 75%, 21%) in CSS?
As HSL: color: hsl(52, 75%, 21%); — As HEX: color: #5E530D; — As RGB: color: rgb(94, 83, 13); — Tailwind CSS: bg-[hsl(52,75%,21%)] — CSS variable: --color-primary: hsl(52, 75%, 21%);