#787F40#787F40
#787F40 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.087 H 114.4°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #787F40 |
|---|---|
| RGB | rgb(120, 127, 64) |
| HSL | hsl(67, 33%, 37%) |
| HSV | hsv(67, 50%, 50%) |
| CMYK | cmyk(5.5%, 0%, 49.6%, 50.2%) |
| CIE-LAB | lab(51.32, -12.58, 33.12) |
| CIE-LCH | lch(51.32, 35.43, 110.80°) |
| OKLab | oklab(57.59% -0.0357 0.0789) |
| OKLCH | oklch(57.59% 0.087 114.4) |
| XYZ | xyz(16.2607, 19.5422, 7.7649) |
| Luminance | 0.1954 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 2.75
Olive Drab
#6F7632
ΔE00 3.77
Khaki Green
#728639
ΔE00 4.19
Military Green
#667C3E
ΔE00 4.91
Swamp
#698339
ΔE00 5.05
Dirty Green
#667E2C
ΔE00 5.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787F40 #47407F
analogous
#7F6740 #787F40 #587F40
triadic
#787F40 #40787F #7F4078
tetradic
#787F40 #407F67 #47407F #7F4058
square
#787F40 #407F67 #47407F #7F4058
split-complementary
#787F40 #40587F #67407F
monochromatic
#2B2E17 #52562B #787F40 #9EA855 #B6BD7C
Accessibility & contrast
On white
4.28
#787F40 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.91
#787F40 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787F40
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787F40 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787F40 | 1.00 | 4.28 | 4.91 | 4.91 |
| #FFFFFF | 4.28 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.91 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.91 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877A3A
Deuteranopia (green-blind)
#867B43
Tritanopia (blue-blind)
#7E7970
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #787f40; /* rgb */ color: rgb(120, 127, 64); /* oklch */ color: oklch(57.6% 0.087 114.4);
Tailwind
colors: {
custom: {
50: '#a0a476',
500: '#787f40',
950: '#000000',
},
}SCSS
$custom: #787f40; $custom-light: #a0a476; $custom-dark: #000000;
JSON
{
"hex": "#787f40",
"rgb": {
"r": 120,
"g": 127,
"b": 64
},
"hsl": {
"h": 66.667,
"s": 32.984,
"l": 37.451
},
"oklch": {
"l": 0.57592,
"c": 0.08663,
"h": 114.4
},
"luminance": 0.19542
}Semantic roles & 50–950 ramp
primary
#787F40
secondary
#7973A8
accent
#5FC96B
background
#FAFAF7
surface
#F3F3ED
border
#CDCDC8
text
#0F0F08
muted
#7F7F7B