#787A1F#787A1F
#787A1F is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.0% C 0.110 H 110.7°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).
Color values
| HEX | #787A1F |
|---|---|
| RGB | rgb(120, 122, 31) |
| HSL | hsl(61, 59%, 30%) |
| HSV | hsv(61, 75%, 48%) |
| CMYK | cmyk(1.6%, 0%, 74.6%, 52.2%) |
| CIE-LAB | lab(49.51, -12.45, 46.55) |
| CIE-LCH | lch(49.51, 48.18, 104.98°) |
| OKLab | oklab(56.05% -0.039 0.103) |
| OKLCH | oklch(56.05% 0.11 110.7) |
| XYZ | xyz(14.9531, 18.0115, 3.9849) |
| Luminance | 0.1801 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive (survey)
#6E750E
ΔE00 2.86
Murky Green
#6C7A0E
ΔE00 3.51
Poop Green
#6F7C00
ΔE00 3.51
Shit Green
#758000
ΔE00 3.73
Olive
#808000
ΔE00 3.95
Olive Drab
#6F7632
ΔE00 4.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787A1F #211F7A
analogous
#7A4F1F #787A1F #4A7A1F
triadic
#787A1F #1F787A #7A1F78
tetradic
#787A1F #1F7A4F #211F7A #7A1F4A
square
#787A1F #1F7A4F #211F7A #7A1F4A
split-complementary
#787A1F #1F4A7A #4F1F7A
monochromatic
#181806 #484913 #787A1F #A8AB2B #CCCF44
Accessibility & contrast
On white
4.56
#787A1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.60
#787A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787A1F
4.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787A1F | 1.00 | 4.56 | 4.60 | 4.60 |
| #FFFFFF | 4.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#84740E
Deuteranopia (green-blind)
#857726
Tritanopia (blue-blind)
#817268
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #787a1f; /* rgb */ color: rgb(120, 122, 31); /* oklch */ color: oklch(56.0% 0.110 110.7);
Tailwind
colors: {
custom: {
50: '#a2a062',
500: '#787a1f',
950: '#000000',
},
}SCSS
$custom: #787a1f; $custom-light: #a2a062; $custom-dark: #000000;
JSON
{
"hex": "#787a1f",
"rgb": {
"r": 120,
"g": 122,
"b": 31
},
"hsl": {
"h": 61.319,
"s": 59.477,
"l": 30
},
"oklch": {
"l": 0.56047,
"c": 0.11011,
"h": 110.7
},
"luminance": 0.18011
}Semantic roles & 50–950 ramp
primary
#787A1F
secondary
#4A47AD
accent
#45E349
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A