#787E1A#787E1A
#787E1A is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.118 H 113.1°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).
Color values
| HEX | #787E1A |
|---|---|
| RGB | rgb(120, 126, 26) |
| HSL | hsl(64, 66%, 30%) |
| HSV | hsv(64, 79%, 49%) |
| CMYK | cmyk(4.8%, 0%, 79.4%, 50.6%) |
| CIE-LAB | lab(50.68, -14.85, 49.42) |
| CIE-LCH | lch(50.68, 51.60, 106.72°) |
| OKLab | oklab(56.97% -0.0461 0.1081) |
| OKLCH | oklch(56.97% 0.118 113.1) |
| XYZ | xyz(15.3935, 18.9897, 3.8316) |
| Luminance | 0.1899 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.10
Poop Green
#6F7C00
ΔE00 2.53
Murky Green
#6C7A0E
ΔE00 3.04
Olive
#808000
ΔE00 3.16
Olive (survey)
#6E750E
ΔE00 3.60
Swamp Green
#748500
ΔE00 3.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787E1A #201A7E
analogous
#7E521A #787E1A #467E1A
triadic
#787E1A #1A787E #7E1A78
tetradic
#787E1A #1A7E52 #201A7E #7E1A46
square
#787E1A #1A7E52 #201A7E #7E1A46
split-complementary
#787E1A #1A467E #521A7E
monochromatic
#181905 #484B10 #787E1A #A8B124 #CDD73C
Accessibility & contrast
On white
4.38
#787E1A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.80
#787E1A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787E1A
4.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787E1A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787E1A | 1.00 | 4.38 | 4.80 | 4.80 |
| #FFFFFF | 4.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#887A23
Tritanopia (blue-blind)
#81766B
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #787e1a; /* rgb */ color: rgb(120, 126, 26); /* oklch */ color: oklch(57.0% 0.118 113.1);
Tailwind
colors: {
custom: {
50: '#a2a360',
500: '#787e1a',
950: '#000000',
},
}SCSS
$custom: #787e1a; $custom-light: #a2a360; $custom-dark: #000000;
JSON
{
"hex": "#787e1a",
"rgb": {
"r": 120,
"g": 126,
"b": 26
},
"hsl": {
"h": 63.6,
"s": 65.789,
"l": 29.804
},
"oklch": {
"l": 0.5697,
"c": 0.11754,
"h": 113.1
},
"luminance": 0.18989
}Semantic roles & 50–950 ramp
primary
#787E1A
secondary
#4842B2
accent
#3FE949
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79