HSL(50, 80%, 21%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(50,80%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(50, 80%, 21%) | color: hsl(50, 80%, 21%) | |
| HEX | #60520B | color: #60520B | |
| RGB | rgb(96, 82, 11) | color: rgb(96, 82, 11) | |
| CMYK | cmyk(0%, 15%, 89%, 62%) | — | |
| HSV | hsv(50, 89%, 38%) | — | |
| HWB | hwb(50 4% 62%) | color: hwb(50 4% 62%) | |
| OKLCH | oklch(0.4398 0.0857 96.89) | color: oklch(0.4398 0.0857 96.89) | |
| Lab | lab(35.1 -2.01 39.62) | color: lab(35.1 -2.01 39.62) | |
| LCH | lch(35.1 39.67 92.9) | color: lch(35.1 39.67 92.9) |
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)
#5A5A1C — rgb(90, 90, 28)
Deuteranopia (Green-blind)
#5B5C20 — rgb(91, 92, 32)
Tritanopia (Blue-blind)
#5F2A2D — rgb(95, 42, 45)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(50, 80%, 21%);
text
color: hsl(50, 80%, 21%);
border
border: 2px solid hsl(50, 80%, 21%);
gradient light
background: linear-gradient(to right, hsl(50, 80%, 41%), hsl(50, 80%, 21%));
gradient dark
background: linear-gradient(to right, hsl(50, 80%, 21%), hsl(50, 80%, 1%))
hex
background-color: #60520B;
tailwind
bg-[hsl(50,80%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(50, 80%, 21%, 0.4);
css variable
--color-primary: hsl(50, 80%, 21%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(50, 80%, 21%)?
HEX: #60520B | RGB: rgb(96, 82, 11) | CMYK: 0%, 15%, 89%, 62% | HSV: 50°, 89%, 38%. Copy any format from the conversion table above.
What colors go well with #60520B?
The complementary color is HSL(230, 80%, 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, 80%, 21%) in CSS?
As HSL: color: hsl(50, 80%, 21%); — As HEX: color: #60520B; — As RGB: color: rgb(96, 82, 11); — Tailwind CSS: bg-[hsl(50,80%,21%)] — CSS variable: --color-primary: hsl(50, 80%, 21%);