#787D1E#787D1E
#787D1E is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.114 H 112.6°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #787D1E |
|---|---|
| RGB | rgb(120, 125, 30) |
| HSL | hsl(63, 61%, 30%) |
| HSV | hsv(63, 76%, 49%) |
| CMYK | cmyk(4%, 0%, 76%, 51%) |
| CIE-LAB | lab(50.40, -14.13, 47.77) |
| CIE-LCH | lch(50.40, 49.81, 106.47°) |
| OKLab | oklab(56.76% -0.0438 0.1054) |
| OKLCH | oklch(56.76% 0.114 112.6) |
| XYZ | xyz(15.3142, 18.7544, 4.0413) |
| Luminance | 0.1875 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.70
Poop Green
#6F7C00
ΔE00 2.85
Murky Green
#6C7A0E
ΔE00 3.09
Olive (survey)
#6E750E
ΔE00 3.37
Olive
#808000
ΔE00 3.51
Swamp Green
#748500
ΔE00 4.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787D1E #231E7D
analogous
#7D521E #787D1E #487D1E
triadic
#787D1E #1E787D #7D1E78
tetradic
#787D1E #1E7D52 #231E7D #7D1E48
square
#787D1E #1E7D52 #231E7D #7D1E48
split-complementary
#787D1E #1E487D #521E7D
monochromatic
#191A06 #494C12 #787D1E #A7AE2A #CAD243
Accessibility & contrast
On white
4.42
#787D1E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.75
#787D1E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787D1E
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787D1E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787D1E | 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)
#87770A
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#81756B
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #787d1e; /* rgb */ color: rgb(120, 125, 30); /* oklch */ color: oklch(56.8% 0.114 112.6);
Tailwind
colors: {
custom: {
50: '#a2a262',
500: '#787d1e',
950: '#000000',
},
}SCSS
$custom: #787d1e; $custom-light: #a2a262; $custom-dark: #000000;
JSON
{
"hex": "#787d1e",
"rgb": {
"r": 120,
"g": 125,
"b": 30
},
"hsl": {
"h": 63.158,
"s": 61.29,
"l": 30.392
},
"oklch": {
"l": 0.56756,
"c": 0.11409,
"h": 112.6
},
"luminance": 0.18754
}Semantic roles & 50–950 ramp
primary
#787D1E
secondary
#4C46B0
accent
#43E44C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A