HSL(59, 55%, 40%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(59,55%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(59, 55%, 40%) | color: hsl(59, 55%, 40%) | |
| HEX | #9E9C2E | color: #9E9C2E | |
| RGB | rgb(158, 156, 46) | color: rgb(158, 156, 46) | |
| CMYK | cmyk(0%, 1%, 71%, 38%) | — | |
| HSV | hsv(59, 71%, 62%) | — | |
| HWB | hwb(59 18% 38%) | color: hwb(59 18% 38%) | |
| OKLCH | oklch(0.6742 0.1283 108.36) | color: oklch(0.6742 0.1283 108.36) | |
| Lab | lab(62.71 -12.71 54.76) | color: lab(62.71 -12.71 54.76) | |
| LCH | lch(62.71 56.22 103.07) | color: lch(62.71 56.22 103.07) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#9D9D49 — rgb(157, 157, 73)
Deuteranopia (Green-blind)
#9D9D4F — rgb(157, 157, 79)
Tritanopia (Blue-blind)
#9E5E62 — rgb(158, 94, 98)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(59, 55%, 40%);
text
color: hsl(59, 55%, 40%);
border
border: 2px solid hsl(59, 55%, 40%);
gradient light
background: linear-gradient(to right, hsl(59, 55%, 60%), hsl(59, 55%, 40%));
gradient dark
background: linear-gradient(to right, hsl(59, 55%, 40%), hsl(59, 55%, 20%))
hex
background-color: #9E9C2E;
tailwind
bg-[hsl(59,55%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(59, 55%, 40%, 0.4);
css variable
--color-primary: hsl(59, 55%, 40%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(59, 55%, 40%)?
HEX: #9E9C2E | RGB: rgb(158, 156, 46) | CMYK: 0%, 1%, 71%, 38% | HSV: 59°, 71%, 62%. Copy any format from the conversion table above.
What colors go well with #9E9C2E?
The complementary color is HSL(239, 55%, 40%). For a triadic harmony, use hues 59°, 179°, and 299°. For analogous combinations, try hues 29° and 89°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(59, 55%, 40%) in CSS?
As HSL: color: hsl(59, 55%, 40%); — As HEX: color: #9E9C2E; — As RGB: color: rgb(158, 156, 46); — Tailwind CSS: bg-[hsl(59,55%,40%)] — CSS variable: --color-primary: hsl(59, 55%, 40%);