#787D2B#787D2B
#787D2B is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.9% C 0.105 H 112.6°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #787D2B |
|---|---|
| RGB | rgb(120, 125, 43) |
| HSL | hsl(64, 49%, 33%) |
| HSV | hsv(64, 66%, 49%) |
| CMYK | cmyk(4%, 0%, 65.6%, 51%) |
| CIE-LAB | lab(50.49, -13.35, 42.53) |
| CIE-LCH | lch(50.49, 44.58, 107.42°) |
| OKLab | oklab(56.86% -0.0402 0.0966) |
| OKLCH | oklch(56.86% 0.105 112.6) |
| XYZ | xyz(15.5158, 18.8350, 5.1032) |
| Luminance | 0.1883 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 3.75
Murky Green
#6C7A0E
ΔE00 3.84
Olive (survey)
#6E750E
ΔE00 4.09
Poop Green
#6F7C00
ΔE00 4.13
Shit Green
#758000
ΔE00 4.21
Drab
#828344
ΔE00 4.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787D2B #302B7D
analogous
#7D592B #787D2B #4F7D2B
triadic
#787D2B #2B787D #7D2B78
tetradic
#787D2B #2B7D59 #302B7D #7D2B4F
square
#787D2B #2B7D59 #302B7D #7D2B4F
split-complementary
#787D2B #2B4F7D #592B7D
monochromatic
#21220C #4C4F1B #787D2B #A4AB3B #C0C75C
Accessibility & contrast
On white
4.41
#787D2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.77
#787D2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787D2B
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787D2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787D2B | 1.00 | 4.41 | 4.77 | 4.77 |
| #FFFFFF | 4.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867720
Deuteranopia (green-blind)
#867930
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #787d2b; /* rgb */ color: rgb(120, 125, 43); /* oklch */ color: oklch(56.9% 0.105 112.6);
Tailwind
colors: {
custom: {
50: '#a1a269',
500: '#787d2b',
950: '#000000',
},
}SCSS
$custom: #787d2b; $custom-light: #a1a269; $custom-dark: #000000;
JSON
{
"hex": "#787d2b",
"rgb": {
"r": 120,
"g": 125,
"b": 43
},
"hsl": {
"h": 63.659,
"s": 48.81,
"l": 32.941
},
"oklch": {
"l": 0.56862,
"c": 0.10465,
"h": 112.6
},
"luminance": 0.18835
}Semantic roles & 50–950 ramp
primary
#787D2B
secondary
#5C57AD
accent
#4FD858
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A