HSL(47, 70%, 21%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(47,70%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(47, 70%, 21%) | color: hsl(47, 70%, 21%) | |
| HEX | #5B4B10 | color: #5B4B10 | |
| RGB | rgb(91, 75, 16) | color: rgb(91, 75, 16) | |
| CMYK | cmyk(0%, 18%, 82%, 64%) | — | |
| HSV | hsv(47, 82%, 36%) | — | |
| HWB | hwb(47 6% 64%) | color: hwb(47 6% 64%) | |
| OKLCH | oklch(0.4178 0.0773 92.98) | color: oklch(0.4178 0.0773 92.98) | |
| Lab | lab(32.47 -0.09 35.27) | color: lab(32.47 -0.09 35.27) | |
| LCH | lch(32.47 35.27 90.15) | color: lch(32.47 35.27 90.15) |
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)
#54541E — rgb(84, 84, 30)
Deuteranopia (Green-blind)
#555622 — rgb(85, 86, 34)
Tritanopia (Blue-blind)
#5A2A2C — rgb(90, 42, 44)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(47, 70%, 21%);
text
color: hsl(47, 70%, 21%);
border
border: 2px solid hsl(47, 70%, 21%);
gradient light
background: linear-gradient(to right, hsl(47, 70%, 41%), hsl(47, 70%, 21%));
gradient dark
background: linear-gradient(to right, hsl(47, 70%, 21%), hsl(47, 70%, 1%))
hex
background-color: #5B4B10;
tailwind
bg-[hsl(47,70%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(47, 70%, 21%, 0.4);
css variable
--color-primary: hsl(47, 70%, 21%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(47, 70%, 21%)?
HEX: #5B4B10 | RGB: rgb(91, 75, 16) | CMYK: 0%, 18%, 82%, 64% | HSV: 47°, 82%, 36%. Copy any format from the conversion table above.
What colors go well with #5B4B10?
The complementary color is HSL(227, 70%, 21%). For a triadic harmony, use hues 47°, 167°, and 287°. For analogous combinations, try hues 17° and 77°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(47, 70%, 21%) in CSS?
As HSL: color: hsl(47, 70%, 21%); — As HEX: color: #5B4B10; — As RGB: color: rgb(91, 75, 16); — Tailwind CSS: bg-[hsl(47,70%,21%)] — CSS variable: --color-primary: hsl(47, 70%, 21%);