#787B20#787B20
#787B20 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.3% C 0.111 H 111.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).
Color values
| HEX | #787B20 |
|---|---|
| RGB | rgb(120, 123, 32) |
| HSL | hsl(62, 59%, 30%) |
| HSV | hsv(62, 74%, 48%) |
| CMYK | cmyk(2.4%, 0%, 74%, 51.8%) |
| CIE-LAB | lab(49.81, -12.94, 46.46) |
| CIE-LCH | lch(49.81, 48.23, 105.57°) |
| OKLab | oklab(56.29% -0.0403 0.103) |
| OKLCH | oklch(56.29% 0.111 111.4) |
| XYZ | xyz(15.0899, 18.2637, 4.0966) |
| Luminance | 0.1826 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive (survey)
#6E750E
ΔE00 3.02
Poop Green
#6F7C00
ΔE00 3.34
Murky Green
#6C7A0E
ΔE00 3.35
Shit Green
#758000
ΔE00 3.47
Olive
#808000
ΔE00 3.89
Olive Drab
#6F7632
ΔE00 4.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787B20 #23207B
analogous
#7B5020 #787B20 #4A7B20
triadic
#787B20 #20787B #7B2078
tetradic
#787B20 #207B50 #23207B #7B204A
square
#787B20 #207B50 #23207B #7B204A
split-complementary
#787B20 #204A7B #50207B
monochromatic
#191A07 #494A13 #787B20 #A7AC2D #CACF46
Accessibility & contrast
On white
4.51
#787B20 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.65
#787B20 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787B20
4.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787B20 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787B20 | 1.00 | 4.51 | 4.65 | 4.65 |
| #FFFFFF | 4.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#85750F
Deuteranopia (green-blind)
#857827
Tritanopia (blue-blind)
#817369
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #787b20; /* rgb */ color: rgb(120, 123, 32); /* oklch */ color: oklch(56.3% 0.111 111.4);
Tailwind
colors: {
custom: {
50: '#a2a162',
500: '#787b20',
950: '#000000',
},
}SCSS
$custom: #787b20; $custom-light: #a2a162; $custom-dark: #000000;
JSON
{
"hex": "#787b20",
"rgb": {
"r": 120,
"g": 123,
"b": 32
},
"hsl": {
"h": 61.978,
"s": 58.71,
"l": 30.392
},
"oklch": {
"l": 0.56292,
"c": 0.11056,
"h": 111.4
},
"luminance": 0.18263
}Semantic roles & 50–950 ramp
primary
#787B20
secondary
#4C49AE
accent
#46E24B
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A