HSL(46, 100%, 31%)
Yellow — Yellow color
Adjust Color
Color Information
Color Name
Yellow
Color Family
Yellow
Warm / Cool
🔴 Warm
Temperature
2700K
CSS Class
bg-[hsl(46,100%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(46, 100%, 31%) | color: hsl(46, 100%, 31%) | |
| HEX | #9E7900 | color: #9E7900 | |
| RGB | rgb(158, 121, 0) | color: rgb(158, 121, 0) | |
| CMYK | cmyk(0%, 23%, 100%, 38%) | — | |
| HSV | hsv(46, 100%, 62%) | — | |
| HWB | hwb(46 0% 38%) | color: hwb(46 0% 38%) | |
| OKLCH | oklch(0.5957 0.1218 87.11) | color: oklch(0.5957 0.1218 87.11) | |
| Lab | lab(52.89 5.04 58.77) | color: lab(52.89 5.04 58.77) | |
| LCH | lch(52.89 58.99 85.1) | color: lch(52.89 58.99 85.1) |
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)
#8E8E1D — rgb(142, 142, 29)
Deuteranopia (Green-blind)
#909324 — rgb(144, 147, 36)
Tritanopia (Blue-blind)
#9C3439 — rgb(156, 52, 57)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(46, 100%, 31%);
text
color: hsl(46, 100%, 31%);
border
border: 2px solid hsl(46, 100%, 31%);
gradient light
background: linear-gradient(to right, hsl(46, 100%, 51%), hsl(46, 100%, 31%));
gradient dark
background: linear-gradient(to right, hsl(46, 100%, 31%), hsl(46, 100%, 11%))
hex
background-color: #9E7900;
tailwind
bg-[hsl(46,100%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(46, 100%, 31%, 0.4);
css variable
--color-primary: hsl(46, 100%, 31%);
Related Colors
Use Cases for Yellow
Frequently Asked Questions
What are all the color codes for HSL(46, 100%, 31%)?
HEX: #9E7900 | RGB: rgb(158, 121, 0) | CMYK: 0%, 23%, 100%, 38% | HSV: 46°, 100%, 62%. Copy any format from the conversion table above.
What colors go well with #9E7900?
The complementary color is HSL(226, 100%, 31%). For a triadic harmony, use hues 46°, 166°, and 286°. For analogous combinations, try hues 16° and 76°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(46, 100%, 31%) in CSS?
As HSL: color: hsl(46, 100%, 31%); — As HEX: color: #9E7900; — As RGB: color: rgb(158, 121, 0); — Tailwind CSS: bg-[hsl(46,100%,31%)] — CSS variable: --color-primary: hsl(46, 100%, 31%);