#78871F#78871F
#78871F is a mid, vivid yellow. Relative luminance 0.214; OKLCH L 59.2% C 0.125 H 117.7°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).
Color values
| HEX | #78871F |
|---|---|
| RGB | rgb(120, 135, 31) |
| HSL | hsl(69, 63%, 33%) |
| HSV | hsv(69, 77%, 53%) |
| CMYK | cmyk(11.1%, 0%, 77%, 47.1%) |
| CIE-LAB | lab(53.41, -19.36, 50.25) |
| CIE-LCH | lch(53.41, 53.85, 111.07°) |
| OKLab | oklab(59.17% -0.0582 0.1108) |
| OKLCH | oklch(59.17% 0.125 117.7) |
| XYZ | xyz(16.6574, 21.4201, 4.5530) |
| Luminance | 0.2142 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Swamp Green
#748500
ΔE00 2.12
Shit Green
#758000
ΔE00 3.26
Dark Yellow Green
#728F02
ΔE00 3.96
Poop Green
#6F7C00
ΔE00 4.40
Khaki Green
#728639
ΔE00 4.51
Olivedrab
#6B8E23
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#78871F #2E1F87
analogous
#87621F #78871F #44871F
triadic
#78871F #1F7887 #871F78
tetradic
#78871F #1F8762 #2E1F87 #871F44
square
#78871F #1F8762 #2E1F87 #871F44
split-complementary
#78871F #1F4487 #621F87
monochromatic
#202308 #4C5514 #78871F #A4B92A #C2D64B
Accessibility & contrast
On white
3.97
#78871F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.28
#78871F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #78871F
5.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##78871F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##78871F | 1.00 | 3.97 | 5.28 | 5.28 |
| #FFFFFF | 3.97 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#907F07
Deuteranopia (green-blind)
#8F8028
Tritanopia (blue-blind)
#807F73
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #78871f; /* rgb */ color: rgb(120, 135, 31); /* oklch */ color: oklch(59.2% 0.125 117.7);
Tailwind
colors: {
custom: {
50: '#a2a963',
500: '#78871f',
950: '#000000',
},
}SCSS
$custom: #78871f; $custom-light: #a2a963; $custom-dark: #000000;
JSON
{
"hex": "#78871f",
"rgb": {
"r": 120,
"g": 135,
"b": 31
},
"hsl": {
"h": 68.654,
"s": 62.651,
"l": 32.549
},
"oklch": {
"l": 0.59171,
"c": 0.12513,
"h": 117.7
},
"luminance": 0.2142
}Semantic roles & 50–950 ramp
primary
#78871F
secondary
#5A4AB8
accent
#42E65A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A