HSL(50, 78%, 21%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(50,78%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(50, 78%, 21%) | color: hsl(50, 78%, 21%) | |
| HEX | #5F510C | color: #5F510C | |
| RGB | rgb(95, 81, 12) | color: rgb(95, 81, 12) | |
| CMYK | cmyk(0%, 15%, 87%, 63%) | — | |
| HSV | hsv(50, 87%, 37%) | — | |
| HWB | hwb(50 5% 63%) | color: hwb(50 5% 63%) | |
| OKLCH | oklch(0.4364 0.0844 96.64) | color: oklch(0.4364 0.0844 96.64) | |
| Lab | lab(34.69 -1.88 38.91) | color: lab(34.69 -1.88 38.91) | |
| LCH | lch(34.69 38.96 92.77) | color: lch(34.69 38.96 92.77) |
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)
#59591D — rgb(89, 89, 29)
Deuteranopia (Green-blind)
#5A5B21 — rgb(90, 91, 33)
Tritanopia (Blue-blind)
#5E2A2D — rgb(94, 42, 45)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(50, 78%, 21%);
text
color: hsl(50, 78%, 21%);
border
border: 2px solid hsl(50, 78%, 21%);
gradient light
background: linear-gradient(to right, hsl(50, 78%, 41%), hsl(50, 78%, 21%));
gradient dark
background: linear-gradient(to right, hsl(50, 78%, 21%), hsl(50, 78%, 1%))
hex
background-color: #5F510C;
tailwind
bg-[hsl(50,78%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(50, 78%, 21%, 0.4);
css variable
--color-primary: hsl(50, 78%, 21%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(50, 78%, 21%)?
HEX: #5F510C | RGB: rgb(95, 81, 12) | CMYK: 0%, 15%, 87%, 63% | HSV: 50°, 87%, 37%. Copy any format from the conversion table above.
What colors go well with #5F510C?
The complementary color is HSL(230, 78%, 21%). For a triadic harmony, use hues 50°, 170°, and 290°. For analogous combinations, try hues 20° and 80°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(50, 78%, 21%) in CSS?
As HSL: color: hsl(50, 78%, 21%); — As HEX: color: #5F510C; — As RGB: color: rgb(95, 81, 12); — Tailwind CSS: bg-[hsl(50,78%,21%)] — CSS variable: --color-primary: hsl(50, 78%, 21%);