#8E831B#8E831B
#8E831B is a mid, moderate yellow. Relative luminance 0.221; OKLCH L 60.2% C 0.118 H 103.0°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).
Color values
| HEX | #8E831B |
|---|---|
| RGB | rgb(142, 131, 27) |
| HSL | hsl(54, 68%, 33%) |
| HSV | hsv(54, 81%, 56%) |
| CMYK | cmyk(0%, 7.7%, 81%, 44.3%) |
| CIE-LAB | lab(54.09, -7.38, 52.90) |
| CIE-LCH | lch(54.09, 53.42, 97.95°) |
| OKLab | oklab(60.17% -0.0264 0.1148) |
| OKLCH | oklch(60.17% 0.118 103) |
| XYZ | xyz(19.4704, 22.0634, 4.2698) |
| Luminance | 0.2206 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.92
Baby Poop
#937C00
ΔE00 4.35
Diarrhea
#9F8303
ΔE00 5.60
Hazel
#8E7618
ΔE00 5.93
Puke Brown
#947706
ΔE00 6.63
Shit Green
#758000
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E831B #1B268E
analogous
#8E491B #8E831B #5F8E1B
triadic
#8E831B #1B8E83 #831B8E
tetradic
#8E831B #1B8E49 #1B268E #8E1B5F
square
#8E831B #1B8E49 #1B268E #8E1B5F
split-complementary
#8E831B #1B5F8E #491B8E
monochromatic
#272407 #5B5411 #8E831B #C1B225 #DCCE47
Accessibility & contrast
On white
3.88
#8E831B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.41
#8E831B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E831B
5.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E831B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E831B | 1.00 | 3.88 | 5.41 | 5.41 |
| #FFFFFF | 3.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#938423
Tritanopia (blue-blind)
#997970
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #8e831b; /* rgb */ color: rgb(142, 131, 27); /* oklch */ color: oklch(60.2% 0.118 103.0);
Tailwind
colors: {
custom: {
50: '#b3a662',
500: '#8e831b',
950: '#000000',
},
}SCSS
$custom: #8e831b; $custom-light: #b3a662; $custom-dark: #000000;
JSON
{
"hex": "#8e831b",
"rgb": {
"r": 142,
"g": 131,
"b": 27
},
"hsl": {
"h": 54.261,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.60174,
"c": 0.11779,
"h": 103
},
"luminance": 0.22063
}Semantic roles & 50–950 ramp
primary
#8E831B
secondary
#4752BE
accent
#4EEB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A