#787D1A#787D1A
#787D1A is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.7% C 0.116 H 112.6°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #787D1A |
|---|---|
| RGB | rgb(120, 125, 26) |
| HSL | hsl(63, 66%, 30%) |
| HSV | hsv(63, 79%, 49%) |
| CMYK | cmyk(4%, 0%, 79.2%, 51%) |
| CIE-LAB | lab(50.38, -14.31, 49.14) |
| CIE-LCH | lch(50.38, 51.19, 106.24°) |
| OKLab | oklab(56.73% -0.0446 0.1075) |
| OKLCH | oklch(56.73% 0.116 112.6) |
| XYZ | xyz(15.2663, 18.7352, 3.7892) |
| Luminance | 0.1873 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.37
Poop Green
#6F7C00
ΔE00 2.62
Murky Green
#6C7A0E
ΔE00 3.04
Olive
#808000
ΔE00 3.17
Olive (survey)
#6E750E
ΔE00 3.32
Swamp Green
#748500
ΔE00 4.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787D1A #1F1A7D
analogous
#7D501A #787D1A #477D1A
triadic
#787D1A #1A787D #7D1A78
tetradic
#787D1A #1A7D50 #1F1A7D #7D1A47
square
#787D1A #1A7D50 #1F1A7D #7D1A47
split-complementary
#787D1A #1A477D #501A7D
monochromatic
#181905 #474A0F #787D1A #A9B025 #CED63B
Accessibility & contrast
On white
4.42
#787D1A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.75
#787D1A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787D1A
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787D1A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787D1A | 1.00 | 4.42 | 4.75 | 4.75 |
| #FFFFFF | 4.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877701
Deuteranopia (green-blind)
#877923
Tritanopia (blue-blind)
#81756B
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #787d1a; /* rgb */ color: rgb(120, 125, 26); /* oklch */ color: oklch(56.7% 0.116 112.6);
Tailwind
colors: {
custom: {
50: '#a2a260',
500: '#787d1a',
950: '#000000',
},
}SCSS
$custom: #787d1a; $custom-light: #a2a260; $custom-dark: #000000;
JSON
{
"hex": "#787d1a",
"rgb": {
"r": 120,
"g": 125,
"b": 26
},
"hsl": {
"h": 63.03,
"s": 65.563,
"l": 29.608
},
"oklch": {
"l": 0.5673,
"c": 0.11642,
"h": 112.6
},
"luminance": 0.18735
}Semantic roles & 50–950 ramp
primary
#787D1A
secondary
#4742B1
accent
#3FE948
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79