HSL(59, 80%, 31%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(59,80%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(59, 80%, 31%) | color: hsl(59, 80%, 31%) | |
| HEX | #8E8C10 | color: #8E8C10 | |
| RGB | rgb(142, 140, 16) | color: rgb(142, 140, 16) | |
| CMYK | cmyk(0%, 1%, 89%, 44%) | — | |
| HSV | hsv(59, 89%, 56%) | — | |
| HWB | hwb(59 6% 44%) | color: hwb(59 6% 44%) | |
| OKLCH | oklch(0.6218 0.1306 108.62) | color: oklch(0.6218 0.1306 108.62) | |
| Lab | lab(56.63 -12.58 57.96) | color: lab(56.63 -12.58 57.96) | |
| LCH | lch(56.63 59.31 102.25) | color: lch(56.63 59.31 102.25) |
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)
#8D8D2E — rgb(141, 141, 46)
Deuteranopia (Green-blind)
#8D8D35 — rgb(141, 141, 53)
Tritanopia (Blue-blind)
#8E464B — rgb(142, 70, 75)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(59, 80%, 31%);
text
color: hsl(59, 80%, 31%);
border
border: 2px solid hsl(59, 80%, 31%);
gradient light
background: linear-gradient(to right, hsl(59, 80%, 51%), hsl(59, 80%, 31%));
gradient dark
background: linear-gradient(to right, hsl(59, 80%, 31%), hsl(59, 80%, 11%))
hex
background-color: #8E8C10;
tailwind
bg-[hsl(59,80%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(59, 80%, 31%, 0.4);
css variable
--color-primary: hsl(59, 80%, 31%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(59, 80%, 31%)?
HEX: #8E8C10 | RGB: rgb(142, 140, 16) | CMYK: 0%, 1%, 89%, 44% | HSV: 59°, 89%, 56%. Copy any format from the conversion table above.
What colors go well with #8E8C10?
The complementary color is HSL(239, 80%, 31%). 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, 80%, 31%) in CSS?
As HSL: color: hsl(59, 80%, 31%); — As HEX: color: #8E8C10; — As RGB: color: rgb(142, 140, 16); — Tailwind CSS: bg-[hsl(59,80%,31%)] — CSS variable: --color-primary: hsl(59, 80%, 31%);