#78871B#78871B
#78871B is a mid, vivid yellow. Relative luminance 0.214; OKLCH L 59.1% C 0.127 H 117.6°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).
Color values
| HEX | #78871B |
|---|---|
| RGB | rgb(120, 135, 27) |
| HSL | hsl(68, 67%, 32%) |
| HSV | hsv(68, 80%, 53%) |
| CMYK | cmyk(11.1%, 0%, 80%, 47.1%) |
| CIE-LAB | lab(53.38, -19.54, 51.56) |
| CIE-LCH | lch(53.38, 55.14, 110.76°) |
| OKLab | oklab(59.15% -0.059 0.1128) |
| OKLCH | oklch(59.15% 0.127 117.6) |
| XYZ | xyz(16.6079, 21.4003, 4.2925) |
| Luminance | 0.2140 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Swamp Green
#748500
ΔE00 1.77
Shit Green
#758000
ΔE00 3.03
Dark Yellow Green
#728F02
ΔE00 3.82
Poop Green
#6F7C00
ΔE00 4.27
Olive
#808000
ΔE00 4.89
Khaki Green
#728639
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#78871B #2A1B87
analogous
#87601B #78871B #42871B
triadic
#78871B #1B7887 #871B78
tetradic
#78871B #1B8760 #2A1B87 #871B42
square
#78871B #1B8760 #2A1B87 #871B42
split-complementary
#78871B #1B4287 #601B87
monochromatic
#1D2107 #4B5411 #78871B #A5BA25 #C5D943
Accessibility & contrast
On white
3.98
#78871B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.28
#78871B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #78871B
5.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##78871B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##78871B | 1.00 | 3.98 | 5.28 | 5.28 |
| #FFFFFF | 3.98 | 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)
#917F00
Deuteranopia (green-blind)
#8F8025
Tritanopia (blue-blind)
#807F73
Achromatopsia (no color)
#7F7F7F
Design tokens & code
CSS
--color: #78871b; /* rgb */ color: rgb(120, 135, 27); /* oklch */ color: oklch(59.1% 0.127 117.6);
Tailwind
colors: {
custom: {
50: '#a2a962',
500: '#78871b',
950: '#000000',
},
}SCSS
$custom: #78871b; $custom-light: #a2a962; $custom-dark: #000000;
JSON
{
"hex": "#78871b",
"rgb": {
"r": 120,
"g": 135,
"b": 27
},
"hsl": {
"h": 68.333,
"s": 66.667,
"l": 31.765
},
"oklch": {
"l": 0.59147,
"c": 0.12734,
"h": 117.6
},
"luminance": 0.214
}Semantic roles & 50–950 ramp
primary
#78871B
secondary
#5444BA
accent
#3EEA56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1005
muted
#7F7F7A