#787A2F#787A2F
#787A2F is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.2% C 0.098 H 110.6°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).
Color values
| HEX | #787A2F |
|---|---|
| RGB | rgb(120, 122, 47) |
| HSL | hsl(62, 44%, 33%) |
| HSV | hsv(62, 61%, 48%) |
| CMYK | cmyk(1.6%, 0%, 61.5%, 52.2%) |
| CIE-LAB | lab(49.64, -11.42, 39.76) |
| CIE-LCH | lch(49.64, 41.37, 106.02°) |
| OKLab | oklab(56.19% -0.0343 0.0913) |
| OKLCH | oklch(56.19% 0.098 110.6) |
| XYZ | xyz(15.2188, 18.1177, 5.3842) |
| Luminance | 0.1812 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 2.87
Olive (survey)
#6E750E
ΔE00 4.22
Drab
#828344
ΔE00 4.36
Murky Green
#6C7A0E
ΔE00 4.69
Poop Green
#6F7C00
ΔE00 5.19
Shit Green
#758000
ΔE00 5.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787A2F #312F7A
analogous
#7A562F #787A2F #527A2F
triadic
#787A2F #2F787A #7A2F78
tetradic
#787A2F #2F7A56 #312F7A #7A2F52
square
#787A2F #2F7A56 #312F7A #7A2F52
split-complementary
#787A2F #2F527A #562F7A
monochromatic
#21220D #4D4E1E #787A2F #A3A640 #C0C261
Accessibility & contrast
On white
4.54
#787A2F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.62
#787A2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787A2F
4.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787A2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787A2F | 1.00 | 4.54 | 4.62 | 4.62 |
| #FFFFFF | 4.54 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.62 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.62 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#837526
Deuteranopia (green-blind)
#847733
Tritanopia (blue-blind)
#80736A
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #787a2f; /* rgb */ color: rgb(120, 122, 47); /* oklch */ color: oklch(56.2% 0.098 110.6);
Tailwind
colors: {
custom: {
50: '#a1a06b',
500: '#787a2f',
950: '#000000',
},
}SCSS
$custom: #787a2f; $custom-light: #a1a06b; $custom-dark: #000000;
JSON
{
"hex": "#787a2f",
"rgb": {
"r": 120,
"g": 122,
"b": 47
},
"hsl": {
"h": 61.6,
"s": 44.379,
"l": 33.137
},
"oklch": {
"l": 0.5619,
"c": 0.09757,
"h": 110.6
},
"luminance": 0.18117
}Semantic roles & 50–950 ramp
primary
#787A2F
secondary
#5E5CA9
accent
#54D457
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A