#8E7F2A#8E7F2A
#8E7F2A is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.4% C 0.105 H 99.1°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #8E7F2A |
|---|---|
| RGB | rgb(142, 127, 42) |
| HSL | hsl(51, 54%, 36%) |
| HSV | hsv(51, 70%, 56%) |
| CMYK | cmyk(0%, 10.6%, 70.4%, 44.3%) |
| CIE-LAB | lab(53.06, -4.47, 46.25) |
| CIE-LCH | lch(53.06, 46.47, 95.51°) |
| OKLab | oklab(59.38% -0.0166 0.1036) |
| OKLCH | oklch(59.38% 0.105 99.1) |
| XYZ | xyz(19.1635, 21.0976, 5.2529) |
| Luminance | 0.2110 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 4.14
Hazel
#8E7618
ΔE00 4.21
Puke Brown
#947706
ΔE00 5.45
Olive
#808000
ΔE00 5.64
Diarrhea
#9F8303
ΔE00 5.83
Poo
#8F7303
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E7F2A #2A398E
analogous
#8E4D2A #8E7F2A #6B8E2A
triadic
#8E7F2A #2A8E7F #7F2A8E
tetradic
#8E7F2A #2A8E4D #2A398E #8E2A6B
square
#8E7F2A #2A8E4D #2A398E #8E2A6B
split-complementary
#8E7F2A #2A6B8E #4D2A8E
monochromatic
#302B0E #5F551C #8E7F2A #BDA938 #D1C062
Accessibility & contrast
On white
4.02
#8E7F2A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.22
#8E7F2A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E7F2A
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E7F2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E7F2A | 1.00 | 4.02 | 5.22 | 5.22 |
| #FFFFFF | 4.02 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8B7C1E
Deuteranopia (green-blind)
#8F812F
Tritanopia (blue-blind)
#99766E
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #8e7f2a; /* rgb */ color: rgb(142, 127, 42); /* oklch */ color: oklch(59.4% 0.105 99.1);
Tailwind
colors: {
custom: {
50: '#b2a369',
500: '#8e7f2a',
950: '#000000',
},
}SCSS
$custom: #8e7f2a; $custom-light: #b2a369; $custom-dark: #000000;
JSON
{
"hex": "#8e7f2a",
"rgb": {
"r": 142,
"g": 127,
"b": 42
},
"hsl": {
"h": 51,
"s": 54.348,
"l": 36.078
},
"oklch": {
"l": 0.5938,
"c": 0.10495,
"h": 99.1
},
"luminance": 0.21097
}Semantic roles & 50–950 ramp
primary
#8E7F2A
secondary
#5D6BB6
accent
#60DE4A
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A