HSL(50, 81%, 21%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(50,81%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(50, 81%, 21%) | color: hsl(50, 81%, 21%) | |
| HEX | #61520A | color: #61520A | |
| RGB | rgb(97, 82, 10) | color: rgb(97, 82, 10) | |
| CMYK | cmyk(0%, 15%, 90%, 62%) | — | |
| HSV | hsv(50, 90%, 38%) | — | |
| HWB | hwb(50 4% 62%) | color: hwb(50 4% 62%) | |
| OKLCH | oklch(0.4409 0.0863 96.06) | color: oklch(0.4409 0.0863 96.06) | |
| Lab | lab(35.2 -1.54 40.06) | color: lab(35.2 -1.54 40.06) | |
| LCH | lch(35.2 40.09 92.2) | color: lch(35.2 40.09 92.2) |
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)
#5B5A1B — rgb(91, 90, 27)
Deuteranopia (Green-blind)
#5B5D20 — rgb(91, 93, 32)
Tritanopia (Blue-blind)
#60292C — rgb(96, 41, 44)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(50, 81%, 21%);
text
color: hsl(50, 81%, 21%);
border
border: 2px solid hsl(50, 81%, 21%);
gradient light
background: linear-gradient(to right, hsl(50, 81%, 41%), hsl(50, 81%, 21%));
gradient dark
background: linear-gradient(to right, hsl(50, 81%, 21%), hsl(50, 81%, 1%))
hex
background-color: #61520A;
tailwind
bg-[hsl(50,81%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(50, 81%, 21%, 0.4);
css variable
--color-primary: hsl(50, 81%, 21%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(50, 81%, 21%)?
HEX: #61520A | RGB: rgb(97, 82, 10) | CMYK: 0%, 15%, 90%, 62% | HSV: 50°, 90%, 38%. Copy any format from the conversion table above.
What colors go well with #61520A?
The complementary color is HSL(230, 81%, 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, 81%, 21%) in CSS?
As HSL: color: hsl(50, 81%, 21%); — As HEX: color: #61520A; — As RGB: color: rgb(97, 82, 10); — Tailwind CSS: bg-[hsl(50,81%,21%)] — CSS variable: --color-primary: hsl(50, 81%, 21%);