#878D1F#878D1F
#878D1F is a mid, vivid yellow. Relative luminance 0.243; OKLCH L 61.9% C 0.127 H 112.8°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).
Color values
| HEX | #878D1F |
|---|---|
| RGB | rgb(135, 141, 31) |
| HSL | hsl(63, 64%, 34%) |
| HSV | hsv(63, 78%, 55%) |
| CMYK | cmyk(4.3%, 0%, 78%, 44.7%) |
| CIE-LAB | lab(56.39, -15.79, 53.45) |
| CIE-LCH | lch(56.39, 55.73, 106.46°) |
| OKLab | oklab(61.86% -0.0491 0.117) |
| OKLCH | oklch(61.86% 0.127 112.8) |
| XYZ | xyz(19.7645, 24.3000, 4.9453) |
| Luminance | 0.2430 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Baby Shit Green
#889717
ΔE00 3.70
Baby Poop Green
#8F9805
ΔE00 4.27
Swamp Green
#748500
ΔE00 4.64
Pea Soup
#929901
ΔE00 4.79
Olive
#808000
ΔE00 4.88
Shit Green
#758000
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#878D1F #251F8D
analogous
#8D5C1F #878D1F #508D1F
triadic
#878D1F #1F878D #8D1F87
tetradic
#878D1F #1F8D5C #251F8D #8D1F50
square
#878D1F #1F8D5C #251F8D #8D1F50
split-complementary
#878D1F #1F508D #5C1F8D
monochromatic
#272909 #575B14 #878D1F #B7BF2A #D1D84E
Accessibility & contrast
On white
3.58
#878D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.86
#878D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #878D1F
5.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##878D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##878D1F | 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)
#988602
Deuteranopia (green-blind)
#988829
Tritanopia (blue-blind)
#918478
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #878d1f; /* rgb */ color: rgb(135, 141, 31); /* oklch */ color: oklch(61.9% 0.127 112.8);
Tailwind
colors: {
custom: {
50: '#adae65',
500: '#878d1f',
950: '#000000',
},
}SCSS
$custom: #878d1f; $custom-light: #adae65; $custom-dark: #000000;
JSON
{
"hex": "#878d1f",
"rgb": {
"r": 135,
"g": 141,
"b": 31
},
"hsl": {
"h": 63.273,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.61862,
"c": 0.12693,
"h": 112.8
},
"luminance": 0.243
}Semantic roles & 50–950 ramp
primary
#878D1F
secondary
#534DBB
accent
#41E74A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A