#787C2B#787C2B
#787C2B is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.6% C 0.103 H 112.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #787C2B |
|---|---|
| RGB | rgb(120, 124, 43) |
| HSL | hsl(63, 49%, 33%) |
| HSV | hsv(63, 65%, 49%) |
| CMYK | cmyk(3.2%, 0%, 65.3%, 51.4%) |
| CIE-LAB | lab(50.20, -12.80, 42.22) |
| CIE-LCH | lch(50.20, 44.12, 106.87°) |
| OKLab | oklab(56.62% -0.0387 0.0959) |
| OKLCH | oklch(56.62% 0.103 112) |
| XYZ | xyz(15.3899, 18.5831, 5.0612) |
| Luminance | 0.1858 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 3.53
Olive (survey)
#6E750E
ΔE00 3.93
Murky Green
#6C7A0E
ΔE00 3.93
Poop Green
#6F7C00
ΔE00 4.27
Shit Green
#758000
ΔE00 4.43
Drab
#828344
ΔE00 4.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787C2B #2F2B7C
analogous
#7C572B #787C2B #4F7C2B
triadic
#787C2B #2B787C #7C2B78
tetradic
#787C2B #2B7C57 #2F2B7C #7C2B4F
square
#787C2B #2B7C57 #2F2B7C #7C2B4F
split-complementary
#787C2B #2B4F7C #572B7C
monochromatic
#20210B #4C4F1B #787C2B #A4A93B #C1C65B
Accessibility & contrast
On white
4.45
#787C2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.72
#787C2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787C2B
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787C2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787C2B | 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)
#857621
Deuteranopia (green-blind)
#867830
Tritanopia (blue-blind)
#80756B
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #787c2b; /* rgb */ color: rgb(120, 124, 43); /* oklch */ color: oklch(56.6% 0.103 112.0);
Tailwind
colors: {
custom: {
50: '#a1a169',
500: '#787c2b',
950: '#000000',
},
}SCSS
$custom: #787c2b; $custom-light: #a1a169; $custom-dark: #000000;
JSON
{
"hex": "#787c2b",
"rgb": {
"r": 120,
"g": 124,
"b": 43
},
"hsl": {
"h": 62.963,
"s": 48.503,
"l": 32.745
},
"oklch": {
"l": 0.56624,
"c": 0.10346,
"h": 112
},
"luminance": 0.18583
}Semantic roles & 50–950 ramp
primary
#787C2B
secondary
#5B57AC
accent
#50D856
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A