#9E8A2F#9E8A2F
#9E8A2F is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.4% C 0.111 H 96.6°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #9E8A2F |
|---|---|
| RGB | rgb(158, 138, 47) |
| HSL | hsl(49, 54%, 40%) |
| HSV | hsv(49, 70%, 62%) |
| CMYK | cmyk(0%, 12.7%, 70.3%, 38%) |
| CIE-LAB | lab(57.71, -2.98, 49.35) |
| CIE-LCH | lch(57.71, 49.44, 93.45°) |
| OKLab | oklab(63.44% -0.0127 0.1105) |
| OKLCH | oklch(63.44% 0.111 96.6) |
| XYZ | xyz(23.7033, 25.6525, 6.3917) |
| Luminance | 0.2565 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 4.21
Dark Mustard
#A88905
ΔE00 4.54
Baby Poo
#AB9004
ΔE00 4.95
Baby Shit Brown
#AD900D
ΔE00 5.00
Yellowy Brown
#AE8B0C
ΔE00 5.43
Baby Poop
#937C00
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E8A2F #2F439E
analogous
#9E522F #9E8A2F #7A9E2F
triadic
#9E8A2F #2F9E8A #8A2F9E
tetradic
#9E8A2F #2F9E52 #2F439E #9E2F7A
square
#9E8A2F #2F9E52 #2F439E #9E2F7A
split-complementary
#9E8A2F #2F7A9E #522F9E
monochromatic
#403813 #6F6121 #9E8A2F #C7AF43 #D5C372
Accessibility & contrast
On white
3.43
#9E8A2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.13
#9E8A2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9E8A2F
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E8A2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9E8A2F | 1.00 | 3.43 | 6.13 | 6.13 |
| #FFFFFF | 3.43 | 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)
#988722
Deuteranopia (green-blind)
#9D8D34
Tritanopia (blue-blind)
#AB7F77
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #9e8a2f; /* rgb */ color: rgb(158, 138, 47); /* oklch */ color: oklch(63.4% 0.111 96.6);
Tailwind
colors: {
custom: {
50: '#beab6d',
500: '#9e8a2f',
950: '#000000',
},
}SCSS
$custom: #9e8a2f; $custom-light: #beab6d; $custom-dark: #000000;
JSON
{
"hex": "#9e8a2f",
"rgb": {
"r": 158,
"g": 138,
"b": 47
},
"hsl": {
"h": 49.189,
"s": 54.146,
"l": 40.196
},
"oklch": {
"l": 0.63442,
"c": 0.11124,
"h": 96.6
},
"luminance": 0.25651
}Semantic roles & 50–950 ramp
primary
#9E8A2F
secondary
#6C7BBD
accent
#65DE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A