#8E7B1A#8E7B1A
#8E7B1A is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.4% C 0.112 H 97.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #8E7B1A |
|---|---|
| RGB | rgb(142, 123, 26) |
| HSL | hsl(50, 69%, 33%) |
| HSV | hsv(50, 82%, 56%) |
| CMYK | cmyk(0%, 13.4%, 81.7%, 44.3%) |
| CIE-LAB | lab(51.83, -2.99, 51.21) |
| CIE-LCH | lch(51.83, 51.30, 93.34°) |
| OKLab | oklab(58.38% -0.0141 0.1109) |
| OKLCH | oklch(58.38% 0.112 97.3) |
| XYZ | xyz(18.4257, 19.9923, 3.8655) |
| Luminance | 0.1999 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 2.28
Hazel
#8E7618
ΔE00 2.32
Puke Brown
#947706
ΔE00 3.43
Poo
#8F7303
ΔE00 3.88
Yellowish Brown
#9B7A01
ΔE00 4.64
Diarrhea
#9F8303
ΔE00 4.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E7B1A #1A2D8E
analogous
#8E411A #8E7B1A #678E1A
triadic
#8E7B1A #1A8E7B #7B1A8E
tetradic
#8E7B1A #1A8E41 #1A2D8E #8E1A67
square
#8E7B1A #1A8E41 #1A2D8E #8E1A67
split-complementary
#8E7B1A #1A678E #411A8E
monochromatic
#272107 #5A4E11 #8E7B1A #C2A823 #DDC445
Accessibility & contrast
On white
4.20
#8E7B1A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.00
#8E7B1A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E7B1A
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E7B1A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E7B1A | 1.00 | 4.20 | 5.00 | 5.00 |
| #FFFFFF | 4.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.00 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.00 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887801
Deuteranopia (green-blind)
#8D7E21
Tritanopia (blue-blind)
#9A7169
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #8e7b1a; /* rgb */ color: rgb(142, 123, 26); /* oklch */ color: oklch(58.4% 0.112 97.3);
Tailwind
colors: {
custom: {
50: '#b3a060',
500: '#8e7b1a',
950: '#000000',
},
}SCSS
$custom: #8e7b1a; $custom-light: #b3a060; $custom-dark: #000000;
JSON
{
"hex": "#8e7b1a",
"rgb": {
"r": 142,
"g": 123,
"b": 26
},
"hsl": {
"h": 50.172,
"s": 69.048,
"l": 32.941
},
"oklch": {
"l": 0.58375,
"c": 0.11183,
"h": 97.3
},
"luminance": 0.19991
}Semantic roles & 50–950 ramp
primary
#8E7B1A
secondary
#4559BE
accent
#59EC3C
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79