#878C1F#878C1F
#878C1F is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.6% C 0.126 H 112.3°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).
Color values
| HEX | #878C1F |
|---|---|
| RGB | rgb(135, 140, 31) |
| HSL | hsl(63, 64%, 34%) |
| HSV | hsv(63, 78%, 55%) |
| CMYK | cmyk(3.6%, 0%, 77.9%, 45.1%) |
| CIE-LAB | lab(56.09, -15.26, 53.18) |
| CIE-LCH | lch(56.09, 55.33, 106.01°) |
| OKLab | oklab(61.63% -0.0477 0.1165) |
| OKLCH | oklch(61.63% 0.126 112.3) |
| XYZ | xyz(19.6177, 24.0065, 4.8964) |
| Luminance | 0.2401 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Shit Green
#889717
ΔE00 4.08
Olive
#808000
ΔE00 4.54
Baby Poop Green
#8F9805
ΔE00 4.57
Swamp Green
#748500
ΔE00 4.59
Pea Soup
#929901
ΔE00 5.05
Shit Green
#758000
ΔE00 5.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#878C1F #241F8C
analogous
#8C5A1F #878C1F #508C1F
triadic
#878C1F #1F878C #8C1F87
tetradic
#878C1F #1F8C5A #241F8C #8C1F50
square
#878C1F #1F8C5A #241F8C #8C1F50
split-complementary
#878C1F #1F508C #5A1F8C
monochromatic
#262809 #575A14 #878C1F #B7BE2A #D1D84E
Accessibility & contrast
On white
3.62
#878C1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.80
#878C1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #878C1F
5.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##878C1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##878C1F | 1.00 | 3.62 | 5.80 | 5.80 |
| #FFFFFF | 3.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#978503
Deuteranopia (green-blind)
#978828
Tritanopia (blue-blind)
#918378
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #878c1f; /* rgb */ color: rgb(135, 140, 31); /* oklch */ color: oklch(61.6% 0.126 112.3);
Tailwind
colors: {
custom: {
50: '#adad64',
500: '#878c1f',
950: '#000000',
},
}SCSS
$custom: #878c1f; $custom-light: #adad64; $custom-dark: #000000;
JSON
{
"hex": "#878c1f",
"rgb": {
"r": 135,
"g": 140,
"b": 31
},
"hsl": {
"h": 62.752,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.61627,
"c": 0.12584,
"h": 112.3
},
"luminance": 0.24006
}Semantic roles & 50–950 ramp
primary
#878C1F
secondary
#514CBB
accent
#41E749
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A