#9E8A31#9E8A31
#9E8A31 is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.5% C 0.110 H 96.4°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #9E8A31 |
|---|---|
| RGB | rgb(158, 138, 49) |
| HSL | hsl(49, 53%, 41%) |
| HSV | hsv(49, 69%, 62%) |
| CMYK | cmyk(0%, 12.7%, 69%, 38%) |
| CIE-LAB | lab(57.72, -2.86, 48.51) |
| CIE-LCH | lch(57.72, 48.59, 93.38°) |
| OKLab | oklab(63.46% -0.0122 0.1091) |
| OKLCH | oklch(63.46% 0.11 96.4) |
| XYZ | xyz(23.7445, 25.6690, 6.6091) |
| Luminance | 0.2567 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 4.39
Dark Mustard
#A88905
ΔE00 4.71
Baby Poo
#AB9004
ΔE00 5.15
Baby Shit Brown
#AD900D
ΔE00 5.17
Yellowy Brown
#AE8B0C
ΔE00 5.56
Baby Poop
#937C00
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E8A31 #31459E
analogous
#9E5331 #9E8A31 #7B9E31
triadic
#9E8A31 #319E8A #8A319E
tetradic
#9E8A31 #319E53 #31459E #9E317B
square
#9E8A31 #319E53 #31459E #9E317B
split-complementary
#9E8A31 #317B9E #53319E
monochromatic
#413814 #6F6123 #9E8A31 #C6AE46 #D4C375
Accessibility & contrast
On white
3.42
#9E8A31 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.13
#9E8A31 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9E8A31
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E8A31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9E8A31 | 1.00 | 3.42 | 6.13 | 6.13 |
| #FFFFFF | 3.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#988725
Deuteranopia (green-blind)
#9D8D36
Tritanopia (blue-blind)
#AA8078
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #9e8a31; /* rgb */ color: rgb(158, 138, 49); /* oklch */ color: oklch(63.5% 0.110 96.4);
Tailwind
colors: {
custom: {
50: '#beab6e',
500: '#9e8a31',
950: '#000000',
},
}SCSS
$custom: #9e8a31; $custom-light: #beab6e; $custom-dark: #000000;
JSON
{
"hex": "#9e8a31",
"rgb": {
"r": 158,
"g": 138,
"b": 49
},
"hsl": {
"h": 48.991,
"s": 52.657,
"l": 40.588
},
"oklch": {
"l": 0.63459,
"c": 0.10976,
"h": 96.4
},
"luminance": 0.25668
}Semantic roles & 50–950 ramp
primary
#9E8A31
secondary
#6E7DBC
accent
#66DC4C
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A