#9E8D27#9E8D27
#9E8D27 is a light, moderate yellow. Relative luminance 0.265; OKLCH L 64.0% C 0.119 H 99.4°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).
Color values
| HEX | #9E8D27 |
|---|---|
| RGB | rgb(158, 141, 39) |
| HSL | hsl(51, 60%, 39%) |
| HSV | hsv(51, 75%, 62%) |
| CMYK | cmyk(0%, 10.8%, 75.3%, 38%) |
| CIE-LAB | lab(58.48, -5.02, 53.31) |
| CIE-LCH | lch(58.48, 53.55, 95.38°) |
| OKLab | oklab(64.04% -0.0195 0.1174) |
| OKLCH | oklch(64.04% 0.119 99.4) |
| XYZ | xyz(23.9928, 26.4665, 5.7638) |
| Luminance | 0.2646 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poo
#AB9004
ΔE00 4.23
Baby Shit Brown
#AD900D
ΔE00 4.51
Dark Mustard
#A88905
ΔE00 4.66
Diarrhea
#9F8303
ΔE00 4.67
Yellowy Brown
#AE8B0C
ΔE00 5.67
Brown Yellow
#B29705
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E8D27 #27389E
analogous
#9E5127 #9E8D27 #739E27
triadic
#9E8D27 #279E8D #8D279E
tetradic
#9E8D27 #279E51 #27389E #9E2773
square
#9E8D27 #279E51 #27389E #9E2773
split-complementary
#9E8D27 #27739E #51279E
monochromatic
#3C350F #6D611B #9E8D27 #CDB735 #D9C966
Accessibility & contrast
On white
3.34
#9E8D27 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.29
#9E8D27 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9E8D27
6.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E8D27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9E8D27 | 1.00 | 3.34 | 6.29 | 6.29 |
| #FFFFFF | 3.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.29 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.29 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#9B8914
Deuteranopia (green-blind)
#A08F2E
Tritanopia (blue-blind)
#AB8279
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #9e8d27; /* rgb */ color: rgb(158, 141, 39); /* oklch */ color: oklch(64.0% 0.119 99.4);
Tailwind
colors: {
custom: {
50: '#beae69',
500: '#9e8d27',
950: '#000000',
},
}SCSS
$custom: #9e8d27; $custom-light: #beae69; $custom-dark: #000000;
JSON
{
"hex": "#9e8d27",
"rgb": {
"r": 158,
"g": 141,
"b": 39
},
"hsl": {
"h": 51.429,
"s": 60.406,
"l": 38.627
},
"oklch": {
"l": 0.64035,
"c": 0.11898,
"h": 99.4
},
"luminance": 0.26465
}Semantic roles & 50–950 ramp
primary
#9E8D27
secondary
#626FBF
accent
#5BE444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A