#8E8A1F#8E8A1F
#8E8A1F is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.8% C 0.122 H 107.3°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).
Color values
| HEX | #8E8A1F |
|---|---|
| RGB | rgb(142, 138, 31) |
| HSL | hsl(58, 64%, 34%) |
| HSV | hsv(58, 78%, 56%) |
| CMYK | cmyk(0%, 2.8%, 78.2%, 44.3%) |
| CIE-LAB | lab(56.12, -11.03, 53.42) |
| CIE-LCH | lch(56.12, 54.55, 101.66°) |
| OKLab | oklab(61.79% -0.0363 0.1167) |
| OKLCH | oklch(61.79% 0.122 107.3) |
| XYZ | xyz(20.4920, 24.0274, 4.8544) |
| Luminance | 0.2403 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 4.27
Baby Poop Green
#8F9805
ΔE00 5.55
Pea Soup
#929901
ΔE00 5.72
Baby Shit Green
#889717
ΔE00 5.94
Shit Green
#758000
ΔE00 6.33
Swamp Green
#748500
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E8A1F #1F238E
analogous
#8E531F #8E8A1F #5B8E1F
triadic
#8E8A1F #1F8E8A #8A1F8E
tetradic
#8E8A1F #1F8E53 #1F238E #8E1F5B
square
#8E8A1F #1F8E53 #1F238E #8E1F5B
split-complementary
#8E8A1F #1F5B8E #531F8E
monochromatic
#2A2809 #5C5914 #8E8A1F #C0BB2A #D9D44F
Accessibility & contrast
On white
3.62
#8E8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.81
#8E8A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E8A1F
5.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E8A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E8A1F | 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)
#968404
Deuteranopia (green-blind)
#988828
Tritanopia (blue-blind)
#998076
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #8e8a1f; /* rgb */ color: rgb(142, 138, 31); /* oklch */ color: oklch(61.8% 0.122 107.3);
Tailwind
colors: {
custom: {
50: '#b3ab64',
500: '#8e8a1f',
950: '#000000',
},
}SCSS
$custom: #8e8a1f; $custom-light: #b3ab64; $custom-dark: #000000;
JSON
{
"hex": "#8e8a1f",
"rgb": {
"r": 142,
"g": 138,
"b": 31
},
"hsl": {
"h": 57.838,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.6179,
"c": 0.12219,
"h": 107.3
},
"luminance": 0.24027
}Semantic roles & 50–950 ramp
primary
#8E8A1F
secondary
#4D51BB
accent
#47E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A