HSL(50, 42%, 26%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(50,42%,26%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(50, 42%, 26%) | color: hsl(50, 42%, 26%) | |
| HEX | #5E5526 | color: #5E5526 | |
| RGB | rgb(94, 85, 38) | color: rgb(94, 85, 38) | |
| CMYK | cmyk(0%, 10%, 60%, 63%) | — | |
| HSV | hsv(50, 60%, 37%) | — | |
| HWB | hwb(50 15% 63%) | color: hwb(50 15% 63%) | |
| OKLCH | oklch(0.4474 0.0671 98.65) | color: oklch(0.4474 0.0671 98.65) | |
| Lab | lab(36.02 -3.14 28.35) | color: lab(36.02 -3.14 28.35) | |
| LCH | lch(36.02 28.52 96.32) | color: lch(36.02 28.52 96.32) |
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)
#5A5A31 — rgb(90, 90, 49)
Deuteranopia (Green-blind)
#5B5B34 — rgb(91, 91, 52)
Tritanopia (Blue-blind)
#5E3A3C — rgb(94, 58, 60)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(50, 42%, 26%);
text
color: hsl(50, 42%, 26%);
border
border: 2px solid hsl(50, 42%, 26%);
gradient light
background: linear-gradient(to right, hsl(50, 42%, 46%), hsl(50, 42%, 26%));
gradient dark
background: linear-gradient(to right, hsl(50, 42%, 26%), hsl(50, 42%, 6%))
hex
background-color: #5E5526;
tailwind
bg-[hsl(50,42%,26%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(50, 42%, 26%, 0.4);
css variable
--color-primary: hsl(50, 42%, 26%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(50, 42%, 26%)?
HEX: #5E5526 | RGB: rgb(94, 85, 38) | CMYK: 0%, 10%, 60%, 63% | HSV: 50°, 60%, 37%. Copy any format from the conversion table above.
What colors go well with #5E5526?
The complementary color is HSL(230, 42%, 26%). 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, 42%, 26%) in CSS?
As HSL: color: hsl(50, 42%, 26%); — As HEX: color: #5E5526; — As RGB: color: rgb(94, 85, 38); — Tailwind CSS: bg-[hsl(50,42%,26%)] — CSS variable: --color-primary: hsl(50, 42%, 26%);