#787D2F#787D2F
#787D2F is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 56.9% C 0.101 H 112.6°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #787D2F |
|---|---|
| RGB | rgb(120, 125, 47) |
| HSL | hsl(64, 45%, 34%) |
| HSV | hsv(64, 62%, 49%) |
| CMYK | cmyk(4%, 0%, 62.4%, 51%) |
| CIE-LAB | lab(50.53, -13.05, 40.74) |
| CIE-LCH | lch(50.53, 42.78, 107.77°) |
| OKLab | oklab(56.9% -0.0389 0.0934) |
| OKLCH | oklch(56.9% 0.101 112.6) |
| XYZ | xyz(15.5928, 18.8659, 5.5088) |
| Luminance | 0.1887 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 3.40
Drab
#828344
ΔE00 3.99
Murky Green
#6C7A0E
ΔE00 4.27
Olive (survey)
#6E750E
ΔE00 4.49
Poop Green
#6F7C00
ΔE00 4.68
Shit Green
#758000
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787D2F #342F7D
analogous
#7D5B2F #787D2F #517D2F
triadic
#787D2F #2F787D #7D2F78
tetradic
#787D2F #2F7D5B #342F7D #7D2F51
square
#787D2F #2F7D5B #342F7D #7D2F51
split-complementary
#787D2F #2F517D #5B2F7D
monochromatic
#23240E #4D511E #787D2F #A3A940 #BEC462
Accessibility & contrast
On white
4.40
#787D2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.77
#787D2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787D2F
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787D2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787D2F | 1.00 | 4.40 | 4.77 | 4.77 |
| #FFFFFF | 4.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867726
Deuteranopia (green-blind)
#867934
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #787d2f; /* rgb */ color: rgb(120, 125, 47); /* oklch */ color: oklch(56.9% 0.101 112.6);
Tailwind
colors: {
custom: {
50: '#a1a26b',
500: '#787d2f',
950: '#000000',
},
}SCSS
$custom: #787d2f; $custom-light: #a1a26b; $custom-dark: #000000;
JSON
{
"hex": "#787d2f",
"rgb": {
"r": 120,
"g": 125,
"b": 47
},
"hsl": {
"h": 63.846,
"s": 45.349,
"l": 33.725
},
"oklch": {
"l": 0.56903,
"c": 0.1012,
"h": 112.6
},
"luminance": 0.18866
}Semantic roles & 50–950 ramp
primary
#787D2F
secondary
#625DAB
accent
#53D55B
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A