#787C28#787C28
#787C28 is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.6% C 0.106 H 112.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #787C28 |
|---|---|
| RGB | rgb(120, 124, 40) |
| HSL | hsl(63, 51%, 32%) |
| HSV | hsv(63, 68%, 49%) |
| CMYK | cmyk(3.2%, 0%, 67.7%, 51.4%) |
| CIE-LAB | lab(50.17, -13.01, 43.52) |
| CIE-LCH | lch(50.17, 45.43, 106.64°) |
| OKLab | oklab(56.6% -0.0396 0.0982) |
| OKLCH | oklch(56.6% 0.106 112) |
| XYZ | xyz(15.3368, 18.5619, 4.7820) |
| Luminance | 0.1856 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive (survey)
#6E750E
ΔE00 3.66
Murky Green
#6C7A0E
ΔE00 3.67
Olive Drab
#6F7632
ΔE00 3.84
Poop Green
#6F7C00
ΔE00 3.91
Shit Green
#758000
ΔE00 4.04
Olive
#808000
ΔE00 4.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787C28 #2C287C
analogous
#7C5628 #787C28 #4E7C28
triadic
#787C28 #28787C #7C2878
tetradic
#787C28 #287C56 #2C287C #7C284E
square
#787C28 #287C56 #2C287C #7C284E
split-complementary
#787C28 #284E7C #56287C
monochromatic
#1E1F0A #4B4E19 #787C28 #A5AA37 #C3C856
Accessibility & contrast
On white
4.46
#787C28 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.71
#787C28 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787C28
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787C28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787C28 | 1.00 | 4.46 | 4.71 | 4.71 |
| #FFFFFF | 4.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#85761C
Deuteranopia (green-blind)
#86782E
Tritanopia (blue-blind)
#80746B
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #787c28; /* rgb */ color: rgb(120, 124, 40); /* oklch */ color: oklch(56.6% 0.106 112.0);
Tailwind
colors: {
custom: {
50: '#a1a167',
500: '#787c28',
950: '#000000',
},
}SCSS
$custom: #787c28; $custom-light: #a1a167; $custom-dark: #000000;
JSON
{
"hex": "#787c28",
"rgb": {
"r": 120,
"g": 124,
"b": 40
},
"hsl": {
"h": 62.857,
"s": 51.22,
"l": 32.157
},
"oklch": {
"l": 0.56596,
"c": 0.1059,
"h": 112
},
"luminance": 0.18562
}Semantic roles & 50–950 ramp
primary
#787C28
secondary
#5752AD
accent
#4DDB54
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A