#787D2C#787D2C
#787D2C is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.9% C 0.104 H 112.6°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #787D2C |
|---|---|
| RGB | rgb(120, 125, 44) |
| HSL | hsl(64, 48%, 33%) |
| HSV | hsv(64, 65%, 49%) |
| CMYK | cmyk(4%, 0%, 64.8%, 51%) |
| CIE-LAB | lab(50.50, -13.28, 42.09) |
| CIE-LCH | lch(50.50, 44.14, 107.50°) |
| OKLab | oklab(56.87% -0.0399 0.0958) |
| OKLCH | oklch(56.87% 0.104 112.6) |
| XYZ | xyz(15.5344, 18.8425, 5.2010) |
| Luminance | 0.1884 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 3.66
Murky Green
#6C7A0E
ΔE00 3.94
Olive (survey)
#6E750E
ΔE00 4.18
Poop Green
#6F7C00
ΔE00 4.26
Drab
#828344
ΔE00 4.33
Shit Green
#758000
ΔE00 4.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787D2C #312C7D
analogous
#7D592C #787D2C #4F7D2C
triadic
#787D2C #2C787D #7D2C78
tetradic
#787D2C #2C7D59 #312C7D #7D2C4F
square
#787D2C #2C7D59 #312C7D #7D2C4F
split-complementary
#787D2C #2C4F7D #592C7D
monochromatic
#21220C #4D501C #787D2C #A3AA3C #C0C65D
Accessibility & contrast
On white
4.40
#787D2C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.77
#787D2C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787D2C
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787D2C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787D2C | 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)
#867722
Deuteranopia (green-blind)
#867931
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #787d2c; /* rgb */ color: rgb(120, 125, 44); /* oklch */ color: oklch(56.9% 0.104 112.6);
Tailwind
colors: {
custom: {
50: '#a1a269',
500: '#787d2c',
950: '#000000',
},
}SCSS
$custom: #787d2c; $custom-light: #a1a269; $custom-dark: #000000;
JSON
{
"hex": "#787d2c",
"rgb": {
"r": 120,
"g": 125,
"b": 44
},
"hsl": {
"h": 63.704,
"s": 47.929,
"l": 33.137
},
"oklch": {
"l": 0.56872,
"c": 0.10381,
"h": 112.6
},
"luminance": 0.18842
}Semantic roles & 50–950 ramp
primary
#787D2C
secondary
#5E59AC
accent
#50D859
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A