#787D1F#787D1F
#787D1F is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.113 H 112.6°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #787D1F |
|---|---|
| RGB | rgb(120, 125, 31) |
| HSL | hsl(63, 60%, 31%) |
| HSV | hsv(63, 75%, 49%) |
| CMYK | cmyk(4%, 0%, 75.2%, 51%) |
| CIE-LAB | lab(50.40, -14.08, 47.40) |
| CIE-LCH | lch(50.40, 49.45, 106.54°) |
| OKLab | oklab(56.76% -0.0435 0.1048) |
| OKLCH | oklch(56.76% 0.113 112.6) |
| XYZ | xyz(15.3272, 18.7596, 4.1096) |
| Luminance | 0.1876 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.79
Poop Green
#6F7C00
ΔE00 2.92
Murky Green
#6C7A0E
ΔE00 3.12
Olive (survey)
#6E750E
ΔE00 3.40
Olive
#808000
ΔE00 3.61
Swamp Green
#748500
ΔE00 4.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787D1F #241F7D
analogous
#7D531F #787D1F #497D1F
triadic
#787D1F #1F787D #7D1F78
tetradic
#787D1F #1F7D53 #241F7D #7D1F49
square
#787D1F #1F7D53 #241F7D #7D1F49
split-complementary
#787D1F #1F497D #531F7D
monochromatic
#1A1B07 #494C13 #787D1F #A7AE2B #CAD145
Accessibility & contrast
On white
4.42
#787D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.75
#787D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787D1F
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787D1F | 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)
#87770C
Deuteranopia (green-blind)
#877927
Tritanopia (blue-blind)
#80756B
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #787d1f; /* rgb */ color: rgb(120, 125, 31); /* oklch */ color: oklch(56.8% 0.113 112.6);
Tailwind
colors: {
custom: {
50: '#a2a262',
500: '#787d1f',
950: '#000000',
},
}SCSS
$custom: #787d1f; $custom-light: #a2a262; $custom-dark: #000000;
JSON
{
"hex": "#787d1f",
"rgb": {
"r": 120,
"g": 125,
"b": 31
},
"hsl": {
"h": 63.191,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.56762,
"c": 0.11346,
"h": 112.6
},
"luminance": 0.18759
}Semantic roles & 50–950 ramp
primary
#787D1F
secondary
#4D48B0
accent
#44E34D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A