#8E8A21#8E8A21
#8E8A21 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.8% C 0.121 H 107.2°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).
Color values
| HEX | #8E8A21 |
|---|---|
| RGB | rgb(142, 138, 33) |
| HSL | hsl(58, 62%, 34%) |
| HSV | hsv(58, 77%, 56%) |
| CMYK | cmyk(0%, 2.8%, 76.8%, 44.3%) |
| CIE-LAB | lab(56.13, -10.94, 52.75) |
| CIE-LCH | lch(56.13, 53.87, 101.72°) |
| OKLab | oklab(61.8% -0.0358 0.1157) |
| OKLCH | oklch(61.8% 0.121 107.2) |
| XYZ | xyz(20.5191, 24.0383, 4.9975) |
| Luminance | 0.2404 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 4.32
Baby Poop Green
#8F9805
ΔE00 5.63
Pea Soup
#929901
ΔE00 5.81
Baby Shit Green
#889717
ΔE00 5.97
Shit Green
#758000
ΔE00 6.34
Swamp Green
#748500
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E8A21 #21258E
analogous
#8E5421 #8E8A21 #5C8E21
triadic
#8E8A21 #218E8A #8A218E
tetradic
#8E8A21 #218E54 #21258E #8E215C
square
#8E8A21 #218E54 #21258E #8E215C
split-complementary
#8E8A21 #215C8E #54218E
monochromatic
#2B290A #5C5A15 #8E8A21 #C0BA2D #D7D252
Accessibility & contrast
On white
3.62
#8E8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.81
#8E8A21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E8A21
5.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E8A21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E8A21 | 1.00 | 3.62 | 5.81 | 5.81 |
| #FFFFFF | 3.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#968409
Deuteranopia (green-blind)
#988829
Tritanopia (blue-blind)
#998076
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #8e8a21; /* rgb */ color: rgb(142, 138, 33); /* oklch */ color: oklch(61.8% 0.121 107.2);
Tailwind
colors: {
custom: {
50: '#b2ab65',
500: '#8e8a21',
950: '#000000',
},
}SCSS
$custom: #8e8a21; $custom-light: #b2ab65; $custom-dark: #000000;
JSON
{
"hex": "#8e8a21",
"rgb": {
"r": 142,
"g": 138,
"b": 33
},
"hsl": {
"h": 57.798,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.61802,
"c": 0.12107,
"h": 107.2
},
"luminance": 0.24038
}Semantic roles & 50–950 ramp
primary
#8E8A21
secondary
#5054BA
accent
#48E542
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A