#8E7A18#8E7A18
#8E7A18 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 58.1% C 0.112 H 96.6°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).
Color values
| HEX | #8E7A18 |
|---|---|
| RGB | rgb(142, 122, 24) |
| HSL | hsl(50, 71%, 33%) |
| HSV | hsv(50, 83%, 56%) |
| CMYK | cmyk(0%, 14.1%, 83.1%, 44.3%) |
| CIE-LAB | lab(51.54, -2.50, 51.60) |
| CIE-LCH | lch(51.54, 51.66, 92.77°) |
| OKLab | oklab(58.14% -0.0129 0.1114) |
| OKLCH | oklch(58.14% 0.112 96.6) |
| XYZ | xyz(18.2807, 19.7368, 3.7107) |
| Luminance | 0.1974 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 1.90
Baby Poop
#937C00
ΔE00 2.17
Puke Brown
#947706
ΔE00 3.03
Poo
#8F7303
ΔE00 3.42
Yellowish Brown
#9B7A01
ΔE00 4.37
Ugly Brown
#7D7103
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E7A18 #182C8E
analogous
#8E3F18 #8E7A18 #678E18
triadic
#8E7A18 #188E7A #7A188E
tetradic
#8E7A18 #188E3F #182C8E #8E1867
square
#8E7A18 #188E3F #182C8E #8E1867
split-complementary
#8E7A18 #18678E #3F188E
monochromatic
#252006 #5A4D0F #8E7A18 #C2A721 #DFC441
Accessibility & contrast
On white
4.24
#8E7A18 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.95
#8E7A18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E7A18
4.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E7A18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E7A18 | 1.00 | 4.24 | 4.95 | 4.95 |
| #FFFFFF | 4.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.95 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.95 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#8D7E1F
Tritanopia (blue-blind)
#9A7068
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #8e7a18; /* rgb */ color: rgb(142, 122, 24); /* oklch */ color: oklch(58.1% 0.112 96.6);
Tailwind
colors: {
custom: {
50: '#b3a05f',
500: '#8e7a18',
950: '#000000',
},
}SCSS
$custom: #8e7a18; $custom-light: #b3a05f; $custom-dark: #000000;
JSON
{
"hex": "#8e7a18",
"rgb": {
"r": 142,
"g": 122,
"b": 24
},
"hsl": {
"h": 49.831,
"s": 71.084,
"l": 32.549
},
"oklch": {
"l": 0.58142,
"c": 0.1121,
"h": 96.6
},
"luminance": 0.19736
}Semantic roles & 50–950 ramp
primary
#8E7A18
secondary
#4257C0
accent
#58EE3A
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79