#9E8A1B#9E8A1B
#9E8A1B is a light, vivid yellow. Relative luminance 0.255; OKLCH L 63.3% C 0.123 H 98.1°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).
Color values
| HEX | #9E8A1B |
|---|---|
| RGB | rgb(158, 138, 27) |
| HSL | hsl(51, 71%, 36%) |
| HSV | hsv(51, 83%, 62%) |
| CMYK | cmyk(0%, 12.7%, 82.9%, 38%) |
| CIE-LAB | lab(57.58, -3.86, 56.55) |
| CIE-LCH | lch(57.58, 56.69, 93.90°) |
| OKLab | oklab(63.31% -0.0173 0.1219) |
| OKLCH | oklch(63.31% 0.123 98.1) |
| XYZ | xyz(23.3881, 25.5264, 4.7319) |
| Luminance | 0.2552 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 3.23
Dark Mustard
#A88905
ΔE00 3.49
Baby Poo
#AB9004
ΔE00 3.62
Baby Shit Brown
#AD900D
ΔE00 3.92
Yellowy Brown
#AE8B0C
ΔE00 4.75
Baby Poop
#937C00
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9E8A1B #1B2F9E
analogous
#9E491B #9E8A1B #719E1B
triadic
#9E8A1B #1B9E8A #8A1B9E
tetradic
#9E8A1B #1B9E49 #1B2F9E #9E1B71
square
#9E8A1B #1B9E49 #1B2F9E #9E1B71
split-complementary
#9E8A1B #1B719E #491B9E
monochromatic
#352F09 #6A5C12 #9E8A1B #D2B824 #E1CC52
Accessibility & contrast
On white
3.44
#9E8A1B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.10
#9E8A1B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9E8A1B
6.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9E8A1B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9E8A1B | 1.00 | 3.44 | 6.10 | 6.10 |
| #FFFFFF | 3.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#9E8D24
Tritanopia (blue-blind)
#AB7F76
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #9e8a1b; /* rgb */ color: rgb(158, 138, 27); /* oklch */ color: oklch(63.3% 0.123 98.1);
Tailwind
colors: {
custom: {
50: '#bfab63',
500: '#9e8a1b',
950: '#000000',
},
}SCSS
$custom: #9e8a1b; $custom-light: #bfab63; $custom-dark: #000000;
JSON
{
"hex": "#9e8a1b",
"rgb": {
"r": 158,
"g": 138,
"b": 27
},
"hsl": {
"h": 50.84,
"s": 70.811,
"l": 36.275
},
"oklch": {
"l": 0.63307,
"c": 0.12308,
"h": 98.1
},
"luminance": 0.25525
}Semantic roles & 50–950 ramp
primary
#9E8A1B
secondary
#5162C4
accent
#56EE3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A