HSL(56, 40%, 40%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(56,40%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(56, 40%, 40%) | color: hsl(56, 40%, 40%) | |
| HEX | #8F893D | color: #8F893D | |
| RGB | rgb(143, 137, 61) | color: rgb(143, 137, 61) | |
| CMYK | cmyk(0%, 4%, 57%, 44%) | — | |
| HSV | hsv(56, 57%, 56%) | — | |
| HWB | hwb(56 24% 44%) | color: hwb(56 24% 44%) | |
| OKLCH | oklch(0.6192 0.0982 104.75) | color: oklch(0.6192 0.0982 104.75) | |
| Lab | lab(56.16 -8.19 40.82) | color: lab(56.16 -8.19 40.82) | |
| LCH | lch(56.16 41.63 101.35) | color: lch(56.16 41.63 101.35) |
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)
#8C8C4F — rgb(140, 140, 79)
Deuteranopia (Green-blind)
#8D8D54 — rgb(141, 141, 84)
Tritanopia (Blue-blind)
#8F5E61 — rgb(143, 94, 97)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(56, 40%, 40%);
text
color: hsl(56, 40%, 40%);
border
border: 2px solid hsl(56, 40%, 40%);
gradient light
background: linear-gradient(to right, hsl(56, 40%, 60%), hsl(56, 40%, 40%));
gradient dark
background: linear-gradient(to right, hsl(56, 40%, 40%), hsl(56, 40%, 20%))
hex
background-color: #8F893D;
tailwind
bg-[hsl(56,40%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(56, 40%, 40%, 0.4);
css variable
--color-primary: hsl(56, 40%, 40%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(56, 40%, 40%)?
HEX: #8F893D | RGB: rgb(143, 137, 61) | CMYK: 0%, 4%, 57%, 44% | HSV: 56°, 57%, 56%. Copy any format from the conversion table above.
What colors go well with #8F893D?
The complementary color is HSL(236, 40%, 40%). For a triadic harmony, use hues 56°, 176°, and 296°. For analogous combinations, try hues 26° and 86°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(56, 40%, 40%) in CSS?
As HSL: color: hsl(56, 40%, 40%); — As HEX: color: #8F893D; — As RGB: color: rgb(143, 137, 61); — Tailwind CSS: bg-[hsl(56,40%,40%)] — CSS variable: --color-primary: hsl(56, 40%, 40%);