#787D1B#787D1B
#787D1B is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.7% C 0.116 H 112.6°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #787D1B |
|---|---|
| RGB | rgb(120, 125, 27) |
| HSL | hsl(63, 64%, 30%) |
| HSV | hsv(63, 78%, 49%) |
| CMYK | cmyk(4%, 0%, 78.4%, 51%) |
| CIE-LAB | lab(50.38, -14.27, 48.81) |
| CIE-LCH | lch(50.38, 50.85, 106.29°) |
| OKLab | oklab(56.74% -0.0444 0.107) |
| OKLCH | oklch(56.74% 0.116 112.6) |
| XYZ | xyz(15.2777, 18.7398, 3.8490) |
| Luminance | 0.1874 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.45
Poop Green
#6F7C00
ΔE00 2.67
Murky Green
#6C7A0E
ΔE00 3.05
Olive
#808000
ΔE00 3.25
Olive (survey)
#6E750E
ΔE00 3.33
Swamp Green
#748500
ΔE00 4.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787D1B #201B7D
analogous
#7D511B #787D1B #477D1B
triadic
#787D1B #1B787D #7D1B78
tetradic
#787D1B #1B7D51 #201B7D #7D1B47
square
#787D1B #1B7D51 #201B7D #7D1B47
split-complementary
#787D1B #1B477D #511B7D
monochromatic
#181905 #484B10 #787D1B #A8AF26 #CDD53D
Accessibility & contrast
On white
4.42
#787D1B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.75
#787D1B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787D1B
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787D1B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787D1B | 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)
#877703
Deuteranopia (green-blind)
#877923
Tritanopia (blue-blind)
#81756B
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #787d1b; /* rgb */ color: rgb(120, 125, 27); /* oklch */ color: oklch(56.7% 0.116 112.6);
Tailwind
colors: {
custom: {
50: '#a2a260',
500: '#787d1b',
950: '#000000',
},
}SCSS
$custom: #787d1b; $custom-light: #a2a260; $custom-dark: #000000;
JSON
{
"hex": "#787d1b",
"rgb": {
"r": 120,
"g": 125,
"b": 27
},
"hsl": {
"h": 63.061,
"s": 64.474,
"l": 29.804
},
"oklch": {
"l": 0.56736,
"c": 0.11586,
"h": 112.6
},
"luminance": 0.18739
}Semantic roles & 50–950 ramp
primary
#787D1B
secondary
#4843B1
accent
#40E749
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79