#8E7A15#8E7A15
#8E7A15 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 58.1% C 0.113 H 96.8°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).
Color values
| HEX | #8E7A15 |
|---|---|
| RGB | rgb(142, 122, 21) |
| HSL | hsl(50, 74%, 32%) |
| HSV | hsv(50, 85%, 56%) |
| CMYK | cmyk(0%, 14.1%, 85.2%, 44.3%) |
| CIE-LAB | lab(51.52, -2.59, 52.50) |
| CIE-LCH | lch(51.52, 52.56, 92.83°) |
| OKLab | oklab(58.13% -0.0134 0.1127) |
| OKLCH | oklch(58.13% 0.113 96.8) |
| XYZ | xyz(18.2512, 19.7250, 3.5553) |
| Luminance | 0.1972 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Poop
#937C00
ΔE00 1.96
Hazel
#8E7618
ΔE00 1.99
Puke Brown
#947706
ΔE00 2.98
Poo
#8F7303
ΔE00 3.39
Yellowish Brown
#9B7A01
ΔE00 4.31
Ugly Brown
#7D7103
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E7A15 #15298E
analogous
#8E3E15 #8E7A15 #658E15
triadic
#8E7A15 #158E7A #7A158E
tetradic
#8E7A15 #158E3E #15298E #8E1565
square
#8E7A15 #158E3E #15298E #8E1565
split-complementary
#8E7A15 #15658E #3E158E
monochromatic
#231E05 #594C0D #8E7A15 #C3A81D #E2C73B
Accessibility & contrast
On white
4.25
#8E7A15 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.94
#8E7A15 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E7A15
4.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E7A15 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E7A15 | 1.00 | 4.25 | 4.94 | 4.94 |
| #FFFFFF | 4.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#8D7E1D
Tritanopia (blue-blind)
#9A7068
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #8e7a15; /* rgb */ color: rgb(142, 122, 21); /* oklch */ color: oklch(58.1% 0.113 96.8);
Tailwind
colors: {
custom: {
50: '#b3a05e',
500: '#8e7a15',
950: '#000000',
},
}SCSS
$custom: #8e7a15; $custom-light: #b3a05e; $custom-dark: #000000;
JSON
{
"hex": "#8e7a15",
"rgb": {
"r": 142,
"g": 122,
"b": 21
},
"hsl": {
"h": 50.083,
"s": 74.233,
"l": 31.961
},
"oklch": {
"l": 0.58127,
"c": 0.11346,
"h": 96.8
},
"luminance": 0.19724
}Semantic roles & 50–950 ramp
primary
#8E7A15
secondary
#3D53C2
accent
#56F137
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79