#787E40#787E40
#787E40 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.4% C 0.085 H 113.6°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #787E40 |
|---|---|
| RGB | rgb(120, 126, 64) |
| HSL | hsl(66, 33%, 37%) |
| HSV | hsv(66, 49%, 49%) |
| CMYK | cmyk(4.8%, 0%, 49.2%, 50.6%) |
| CIE-LAB | lab(51.02, -12.04, 32.76) |
| CIE-LCH | lch(51.02, 34.91, 110.18°) |
| OKLab | oklab(57.36% -0.0342 0.0781) |
| OKLCH | oklch(57.36% 0.085 113.6) |
| XYZ | xyz(16.1322, 19.2852, 7.7221) |
| Luminance | 0.1928 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 2.81
Olive Drab
#6F7632
ΔE00 3.54
Khaki Green
#728639
ΔE00 4.61
Military Green
#667C3E
ΔE00 5.03
Muddy Green
#657432
ΔE00 5.36
Swamp
#698339
ΔE00 5.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787E40 #46407E
analogous
#7E6540 #787E40 #597E40
triadic
#787E40 #40787E #7E4078
tetradic
#787E40 #407E65 #46407E #7E4059
square
#787E40 #407E65 #46407E #7E4059
split-complementary
#787E40 #40597E #65407E
monochromatic
#2B2D17 #51552B #787E40 #9FA755 #B6BC7C
Accessibility & contrast
On white
4.32
#787E40 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.86
#787E40 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787E40
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787E40 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787E40 | 1.00 | 4.32 | 4.86 | 4.86 |
| #FFFFFF | 4.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#86793B
Deuteranopia (green-blind)
#867A43
Tritanopia (blue-blind)
#7F7870
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #787e40; /* rgb */ color: rgb(120, 126, 64); /* oklch */ color: oklch(57.4% 0.085 113.6);
Tailwind
colors: {
custom: {
50: '#a0a376',
500: '#787e40',
950: '#000000',
},
}SCSS
$custom: #787e40; $custom-light: #a0a376; $custom-dark: #000000;
JSON
{
"hex": "#787e40",
"rgb": {
"r": 120,
"g": 126,
"b": 64
},
"hsl": {
"h": 65.806,
"s": 32.632,
"l": 37.255
},
"oklch": {
"l": 0.57356,
"c": 0.08528,
"h": 113.6
},
"luminance": 0.19285
}Semantic roles & 50–950 ramp
primary
#787E40
secondary
#7873A7
accent
#5FC969
background
#FAFAF7
surface
#F3F3ED
border
#CDCDC8
text
#0F0F08
muted
#7F7F7B