#878D15#878D15
#878D15 is a mid, vivid yellow. Relative luminance 0.243; OKLCH L 61.8% C 0.132 H 112.8°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).
Color values
| HEX | #878D15 |
|---|---|
| RGB | rgb(135, 141, 21) |
| HSL | hsl(63, 74%, 32%) |
| HSV | hsv(63, 85%, 55%) |
| CMYK | cmyk(4.3%, 0%, 85.1%, 44.7%) |
| CIE-LAB | lab(56.34, -16.16, 56.33) |
| CIE-LCH | lch(56.34, 58.60, 106.01°) |
| OKLab | oklab(61.81% -0.0509 0.1214) |
| OKLCH | oklch(61.81% 0.132 112.8) |
| XYZ | xyz(19.6526, 24.2553, 4.3558) |
| Luminance | 0.2425 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Shit Green
#889717
ΔE00 3.60
Baby Poop Green
#8F9805
ΔE00 3.89
Pea Soup
#929901
ΔE00 4.38
Swamp Green
#748500
ΔE00 4.61
Olive
#808000
ΔE00 4.70
Shit Green
#758000
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#878D15 #1B158D
analogous
#8D5715 #878D15 #4B8D15
triadic
#878D15 #15878D #8D1587
tetradic
#878D15 #158D57 #1B158D #8D154B
square
#878D15 #158D57 #1B158D #8D154B
split-complementary
#878D15 #154B8D #57158D
monochromatic
#212205 #54580D #878D15 #BAC21D #D9E23B
Accessibility & contrast
On white
3.59
#878D15 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.85
#878D15 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #878D15
5.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##878D15 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##878D15 | 1.00 | 3.59 | 5.85 | 5.85 |
| #FFFFFF | 3.59 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.85 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.85 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#998822
Tritanopia (blue-blind)
#918478
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #878d15; /* rgb */ color: rgb(135, 141, 21); /* oklch */ color: oklch(61.8% 0.132 112.8);
Tailwind
colors: {
custom: {
50: '#aeae61',
500: '#878d15',
950: '#000000',
},
}SCSS
$custom: #878d15; $custom-light: #aeae61; $custom-dark: #000000;
JSON
{
"hex": "#878d15",
"rgb": {
"r": 135,
"g": 141,
"b": 21
},
"hsl": {
"h": 63,
"s": 74.074,
"l": 31.765
},
"oklch": {
"l": 0.61812,
"c": 0.13161,
"h": 112.8
},
"luminance": 0.24255
}Semantic roles & 50–950 ramp
primary
#878D15
secondary
#443DC1
accent
#37F140
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A