#9E8D2B#9E8D2B
#9E8D2B is a light, moderate yellow. Relative luminance 0.265; OKLCH L 64.1% C 0.116 H 99.1°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).
Color values
| HEX | #9E8D2B |
|---|---|
| RGB | rgb(158, 141, 43) |
| HSL | hsl(51, 57%, 39%) |
| HSV | hsv(51, 73%, 62%) |
| CMYK | cmyk(0%, 10.8%, 72.8%, 38%) |
| CIE-LAB | lab(58.50, -4.83, 51.79) |
| CIE-LCH | lch(58.50, 52.02, 95.33°) |
| OKLab | oklab(64.06% -0.0185 0.1149) |
| OKLCH | oklch(64.06% 0.116 99.1) |
| XYZ | xyz(24.0626, 26.4944, 6.1315) |
| Luminance | 0.2649 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 4.51
Baby Shit Brown
#AD900D
ΔE00 4.73
Diarrhea
#9F8303
ΔE00 4.84
Dark Mustard
#A88905
ΔE00 4.85
Yellowy Brown
#AE8B0C
ΔE00 5.80
Brown Yellow
#B29705
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E8D2B #2B3C9E
analogous
#9E532B #9E8D2B #769E2B
triadic
#9E8D2B #2B9E8D #8D2B9E
tetradic
#9E8D2B #2B9E53 #2B3C9E #9E2B76
square
#9E8D2B #2B9E53 #2B3C9E #9E2B76
split-complementary
#9E8D2B #2B769E #532B9E
monochromatic
#3E3711 #6E621E #9E8D2B #CAB53C #D7C76C
Accessibility & contrast
On white
3.33
#9E8D2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.30
#9E8D2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9E8D2B
6.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E8D2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9E8D2B | 1.00 | 3.33 | 6.30 | 6.30 |
| #FFFFFF | 3.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.30 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.30 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9B891B
Deuteranopia (green-blind)
#A08F31
Tritanopia (blue-blind)
#AA827A
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #9e8d2b; /* rgb */ color: rgb(158, 141, 43); /* oklch */ color: oklch(64.1% 0.116 99.1);
Tailwind
colors: {
custom: {
50: '#beae6b',
500: '#9e8d2b',
950: '#000000',
},
}SCSS
$custom: #9e8d2b; $custom-light: #beae6b; $custom-dark: #000000;
JSON
{
"hex": "#9e8d2b",
"rgb": {
"r": 158,
"g": 141,
"b": 43
},
"hsl": {
"h": 51.13,
"s": 57.214,
"l": 39.412
},
"oklch": {
"l": 0.64064,
"c": 0.11642,
"h": 99.1
},
"luminance": 0.26493
}Semantic roles & 50–950 ramp
primary
#9E8D2B
secondary
#6774BE
accent
#5EE047
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A