#8E8B1F#8E8B1F
#8E8B1F is a light, vivid yellow. Relative luminance 0.243; OKLCH L 62.0% C 0.123 H 107.9°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).
Color values
| HEX | #8E8B1F |
|---|---|
| RGB | rgb(142, 139, 31) |
| HSL | hsl(58, 64%, 34%) |
| HSV | hsv(58, 78%, 56%) |
| CMYK | cmyk(0%, 2.1%, 78.2%, 44.3%) |
| CIE-LAB | lab(56.40, -11.56, 53.68) |
| CIE-LCH | lch(56.40, 54.91, 102.16°) |
| OKLab | oklab(62.02% -0.0378 0.1173) |
| OKLCH | oklch(62.02% 0.123 107.9) |
| XYZ | xyz(20.6361, 24.3157, 4.9024) |
| Luminance | 0.2432 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 4.46
Baby Poop Green
#8F9805
ΔE00 5.16
Pea Soup
#929901
ΔE00 5.35
Baby Shit Green
#889717
ΔE00 5.54
Shit Green
#758000
ΔE00 6.36
Swamp Green
#748500
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E8B1F #1F228E
analogous
#8E541F #8E8B1F #5A8E1F
triadic
#8E8B1F #1F8E8B #8B1F8E
tetradic
#8E8B1F #1F8E54 #1F228E #8E1F5A
square
#8E8B1F #1F8E54 #1F228E #8E1F5A
split-complementary
#8E8B1F #1F5A8E #541F8E
monochromatic
#2A2909 #5C5A14 #8E8B1F #C0BC2A #D9D54F
Accessibility & contrast
On white
3.58
#8E8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.86
#8E8B1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8E8B1F
5.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E8B1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8E8B1F | 1.00 | 3.58 | 5.86 | 5.86 |
| #FFFFFF | 3.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#978503
Deuteranopia (green-blind)
#998928
Tritanopia (blue-blind)
#998177
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #8e8b1f; /* rgb */ color: rgb(142, 139, 31); /* oklch */ color: oklch(62.0% 0.123 107.9);
Tailwind
colors: {
custom: {
50: '#b3ac64',
500: '#8e8b1f',
950: '#000000',
},
}SCSS
$custom: #8e8b1f; $custom-light: #b3ac64; $custom-dark: #000000;
JSON
{
"hex": "#8e8b1f",
"rgb": {
"r": 142,
"g": 139,
"b": 31
},
"hsl": {
"h": 58.378,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.6202,
"c": 0.12318,
"h": 107.9
},
"luminance": 0.24315
}Semantic roles & 50–950 ramp
primary
#8E8B1F
secondary
#4D50BB
accent
#45E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A