#878B18#878B18
#878B18 is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.4% C 0.128 H 111.8°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).
Color values
| HEX | #878B18 |
|---|---|
| RGB | rgb(135, 139, 24) |
| HSL | hsl(62, 71%, 32%) |
| HSV | hsv(62, 83%, 55%) |
| CMYK | cmyk(2.9%, 0%, 82.7%, 45.5%) |
| CIE-LAB | lab(55.77, -15.01, 55.04) |
| CIE-LCH | lch(55.77, 57.04, 105.25°) |
| OKLab | oklab(61.36% -0.0475 0.1191) |
| OKLCH | oklch(61.36% 0.128 111.8) |
| XYZ | xyz(19.3899, 23.6826, 4.4138) |
| Luminance | 0.2368 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 4.04
Baby Shit Green
#889717
ΔE00 4.39
Swamp Green
#748500
ΔE00 4.53
Baby Poop Green
#8F9805
ΔE00 4.62
Shit Green
#758000
ΔE00 4.96
Pea Soup
#929901
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#878B18 #1C188B
analogous
#8B5618 #878B18 #4E8B18
triadic
#878B18 #18878B #8B1887
tetradic
#878B18 #188B56 #1C188B #8B184E
square
#878B18 #188B56 #1C188B #8B184E
split-complementary
#878B18 #184E8B #56188B
monochromatic
#222306 #54570F #878B18 #BABF21 #D8DE3F
Accessibility & contrast
On white
3.66
#878B18 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.74
#878B18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #878B18
5.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##878B18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##878B18 | 1.00 | 3.66 | 5.74 | 5.74 |
| #FFFFFF | 3.66 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#978723
Tritanopia (blue-blind)
#918276
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #878b18; /* rgb */ color: rgb(135, 139, 24); /* oklch */ color: oklch(61.4% 0.128 111.8);
Tailwind
colors: {
custom: {
50: '#aeac61',
500: '#878b18',
950: '#000000',
},
}SCSS
$custom: #878b18; $custom-light: #aeac61; $custom-dark: #000000;
JSON
{
"hex": "#878b18",
"rgb": {
"r": 135,
"g": 139,
"b": 24
},
"hsl": {
"h": 62.087,
"s": 70.552,
"l": 31.961
},
"oklch": {
"l": 0.61356,
"c": 0.12825,
"h": 111.8
},
"luminance": 0.23682
}Semantic roles & 50–950 ramp
primary
#878B18
secondary
#4540BE
accent
#3AED41
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A