#787C2A#787C2A
#787C2A is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.6% C 0.104 H 112.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #787C2A |
|---|---|
| RGB | rgb(120, 124, 42) |
| HSL | hsl(63, 49%, 33%) |
| HSV | hsv(63, 66%, 49%) |
| CMYK | cmyk(3.2%, 0%, 66.1%, 51.4%) |
| CIE-LAB | lab(50.19, -12.88, 42.66) |
| CIE-LCH | lch(50.19, 44.56, 106.79°) |
| OKLab | oklab(56.61% -0.039 0.0967) |
| OKLCH | oklch(56.61% 0.104 112) |
| XYZ | xyz(15.3717, 18.5759, 4.9658) |
| Luminance | 0.1858 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 3.63
Olive (survey)
#6E750E
ΔE00 3.83
Murky Green
#6C7A0E
ΔE00 3.84
Poop Green
#6F7C00
ΔE00 4.14
Shit Green
#758000
ΔE00 4.29
Drab
#828344
ΔE00 4.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787C2A #2E2A7C
analogous
#7C572A #787C2A #4F7C2A
triadic
#787C2A #2A787C #7C2A78
tetradic
#787C2A #2A7C57 #2E2A7C #7C2A4F
square
#787C2A #2A7C57 #2E2A7C #7C2A4F
split-complementary
#787C2A #2A4F7C #572A7C
monochromatic
#20210B #4C4E1B #787C2A #A4AA39 #C2C759
Accessibility & contrast
On white
4.45
#787C2A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.72
#787C2A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787C2A
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787C2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787C2A | 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)
#85761F
Deuteranopia (green-blind)
#86782F
Tritanopia (blue-blind)
#80756B
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #787c2a; /* rgb */ color: rgb(120, 124, 42); /* oklch */ color: oklch(56.6% 0.104 112.0);
Tailwind
colors: {
custom: {
50: '#a1a168',
500: '#787c2a',
950: '#000000',
},
}SCSS
$custom: #787c2a; $custom-light: #a1a168; $custom-dark: #000000;
JSON
{
"hex": "#787c2a",
"rgb": {
"r": 120,
"g": 124,
"b": 42
},
"hsl": {
"h": 62.927,
"s": 49.398,
"l": 32.549
},
"oklch": {
"l": 0.56614,
"c": 0.10429,
"h": 112
},
"luminance": 0.18576
}Semantic roles & 50–950 ramp
primary
#787C2A
secondary
#5A55AD
accent
#4FD956
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A