#787C1A#787C1A
#787C1A is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.5% C 0.115 H 112.0°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).
Color values
| HEX | #787C1A |
|---|---|
| RGB | rgb(120, 124, 26) |
| HSL | hsl(62, 65%, 29%) |
| HSV | hsv(62, 79%, 49%) |
| CMYK | cmyk(3.2%, 0%, 79%, 51.4%) |
| CIE-LAB | lab(50.08, -13.77, 48.87) |
| CIE-LCH | lch(50.08, 50.78, 105.74°) |
| OKLab | oklab(56.49% -0.0431 0.1069) |
| OKLCH | oklch(56.49% 0.115 112) |
| XYZ | xyz(15.1403, 18.4833, 3.7472) |
| Luminance | 0.1848 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.69
Poop Green
#6F7C00
ΔE00 2.77
Olive (survey)
#6E750E
ΔE00 3.08
Murky Green
#6C7A0E
ΔE00 3.11
Olive
#808000
ΔE00 3.24
Olive Green
#677A04
ΔE00 4.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787C1A #1E1A7C
analogous
#7C4F1A #787C1A #477C1A
triadic
#787C1A #1A787C #7C1A78
tetradic
#787C1A #1A7C4F #1E1A7C #7C1A47
square
#787C1A #1A7C4F #1E1A7C #7C1A47
split-complementary
#787C1A #1A477C #4F1A7C
monochromatic
#181905 #47490F #787C1A #A9AF25 #CFD63B
Accessibility & contrast
On white
4.47
#787C1A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.70
#787C1A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787C1A
4.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787C1A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787C1A | 1.00 | 4.47 | 4.70 | 4.70 |
| #FFFFFF | 4.47 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.70 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.70 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867601
Deuteranopia (green-blind)
#867823
Tritanopia (blue-blind)
#81746A
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #787c1a; /* rgb */ color: rgb(120, 124, 26); /* oklch */ color: oklch(56.5% 0.115 112.0);
Tailwind
colors: {
custom: {
50: '#a2a160',
500: '#787c1a',
950: '#000000',
},
}SCSS
$custom: #787c1a; $custom-light: #a2a160; $custom-dark: #000000;
JSON
{
"hex": "#787c1a",
"rgb": {
"r": 120,
"g": 124,
"b": 26
},
"hsl": {
"h": 62.449,
"s": 65.333,
"l": 29.412
},
"oklch": {
"l": 0.56491,
"c": 0.11532,
"h": 112
},
"luminance": 0.18483
}Semantic roles & 50–950 ramp
primary
#787C1A
secondary
#4642B0
accent
#40E846
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79