#8E8A1B#8E8A1B
#8E8A1B is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.8% C 0.124 H 107.3°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).
Color values
| HEX | #8E8A1B |
|---|---|
| RGB | rgb(142, 138, 27) |
| HSL | hsl(58, 68%, 33%) |
| HSV | hsv(58, 81%, 56%) |
| CMYK | cmyk(0%, 2.8%, 81%, 44.3%) |
| CIE-LAB | lab(56.10, -11.18, 54.68) |
| CIE-LCH | lch(56.10, 55.81, 101.56°) |
| OKLab | oklab(61.77% -0.037 0.1186) |
| OKLCH | oklch(61.77% 0.124 107.3) |
| XYZ | xyz(20.4425, 24.0076, 4.5938) |
| Luminance | 0.2401 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 4.19
Baby Poop Green
#8F9805
ΔE00 5.43
Pea Soup
#929901
ΔE00 5.58
Baby Shit Green
#889717
ΔE00 5.91
Shit Green
#758000
ΔE00 6.31
Swamp Green
#748500
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E8A1B #1B1F8E
analogous
#8E501B #8E8A1B #588E1B
triadic
#8E8A1B #1B8E8A #8A1B8E
tetradic
#8E8A1B #1B8E50 #1B1F8E #8E1B58
square
#8E8A1B #1B8E50 #1B1F8E #8E1B58
split-complementary
#8E8A1B #1B588E #501B8E
monochromatic
#272607 #5B5811 #8E8A1B #C1BC25 #DCD747
Accessibility & contrast
On white
3.62
#8E8A1B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.80
#8E8A1B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E8A1B
5.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E8A1B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E8A1B | 1.00 | 3.62 | 5.80 | 5.80 |
| #FFFFFF | 3.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#988825
Tritanopia (blue-blind)
#998076
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #8e8a1b; /* rgb */ color: rgb(142, 138, 27); /* oklch */ color: oklch(61.8% 0.124 107.3);
Tailwind
colors: {
custom: {
50: '#b3ab63',
500: '#8e8a1b',
950: '#000000',
},
}SCSS
$custom: #8e8a1b; $custom-light: #b3ab63; $custom-dark: #000000;
JSON
{
"hex": "#8e8a1b",
"rgb": {
"r": 142,
"g": 138,
"b": 27
},
"hsl": {
"h": 57.913,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.61768,
"c": 0.12425,
"h": 107.3
},
"luminance": 0.24007
}Semantic roles & 50–950 ramp
primary
#8E8A1B
secondary
#474BBE
accent
#43EB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A