#787C2F#787C2F
#787C2F is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.7% C 0.100 H 112.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #787C2F |
|---|---|
| RGB | rgb(120, 124, 47) |
| HSL | hsl(63, 45%, 34%) |
| HSV | hsv(63, 62%, 49%) |
| CMYK | cmyk(3.2%, 0%, 62.1%, 51.4%) |
| CIE-LAB | lab(50.23, -12.51, 40.41) |
| CIE-LCH | lch(50.23, 42.30, 107.20°) |
| OKLab | oklab(56.67% -0.0374 0.0927) |
| OKLCH | oklch(56.67% 0.1 112) |
| XYZ | xyz(15.4669, 18.6139, 5.4669) |
| Luminance | 0.1861 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 3.17
Drab
#828344
ΔE00 4.07
Olive (survey)
#6E750E
ΔE00 4.36
Murky Green
#6C7A0E
ΔE00 4.36
Poop Green
#6F7C00
ΔE00 4.81
Shit Green
#758000
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787C2F #332F7C
analogous
#7C592F #787C2F #517C2F
triadic
#787C2F #2F787C #7C2F78
tetradic
#787C2F #2F7C59 #332F7C #7C2F51
square
#787C2F #2F7C59 #332F7C #7C2F51
split-complementary
#787C2F #2F517C #592F7C
monochromatic
#22230D #4D501E #787C2F #A3A840 #BEC362
Accessibility & contrast
On white
4.45
#787C2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.72
#787C2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787C2F
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787C2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787C2F | 1.00 | 4.45 | 4.72 | 4.72 |
| #FFFFFF | 4.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.72 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.72 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#857626
Deuteranopia (green-blind)
#857834
Tritanopia (blue-blind)
#80756C
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #787c2f; /* rgb */ color: rgb(120, 124, 47); /* oklch */ color: oklch(56.7% 0.100 112.0);
Tailwind
colors: {
custom: {
50: '#a1a16b',
500: '#787c2f',
950: '#000000',
},
}SCSS
$custom: #787c2f; $custom-light: #a1a16b; $custom-dark: #000000;
JSON
{
"hex": "#787c2f",
"rgb": {
"r": 120,
"g": 124,
"b": 47
},
"hsl": {
"h": 63.117,
"s": 45.029,
"l": 33.529
},
"oklch": {
"l": 0.56665,
"c": 0.09998,
"h": 112
},
"luminance": 0.18614
}Semantic roles & 50–950 ramp
primary
#787C2F
secondary
#605CAA
accent
#53D55A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A