#787B21#787B21
#787B21 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.3% C 0.110 H 111.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).
Color values
| HEX | #787B21 |
|---|---|
| RGB | rgb(120, 123, 33) |
| HSL | hsl(62, 58%, 31%) |
| HSV | hsv(62, 73%, 48%) |
| CMYK | cmyk(2.4%, 0%, 73.2%, 51.8%) |
| CIE-LAB | lab(49.82, -12.89, 46.07) |
| CIE-LCH | lch(49.82, 47.84, 105.63°) |
| OKLab | oklab(56.3% -0.04 0.1024) |
| OKLCH | oklch(56.3% 0.11 111.4) |
| XYZ | xyz(15.1037, 18.2692, 4.1692) |
| Luminance | 0.1827 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive (survey)
#6E750E
ΔE00 3.06
Murky Green
#6C7A0E
ΔE00 3.39
Poop Green
#6F7C00
ΔE00 3.41
Shit Green
#758000
ΔE00 3.56
Olive
#808000
ΔE00 3.99
Olive Drab
#6F7632
ΔE00 4.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787B21 #24217B
analogous
#7B5121 #787B21 #4B7B21
triadic
#787B21 #21787B #7B2178
tetradic
#787B21 #217B51 #24217B #7B214B
square
#787B21 #217B51 #24217B #7B214B
split-complementary
#787B21 #214B7B #51217B
monochromatic
#1A1A07 #494B14 #787B21 #A7AB2E #CACE48
Accessibility & contrast
On white
4.51
#787B21 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.65
#787B21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787B21
4.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787B21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787B21 | 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)
#857511
Deuteranopia (green-blind)
#857828
Tritanopia (blue-blind)
#817369
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #787b21; /* rgb */ color: rgb(120, 123, 33); /* oklch */ color: oklch(56.3% 0.110 111.4);
Tailwind
colors: {
custom: {
50: '#a2a163',
500: '#787b21',
950: '#000000',
},
}SCSS
$custom: #787b21; $custom-light: #a2a163; $custom-dark: #000000;
JSON
{
"hex": "#787b21",
"rgb": {
"r": 120,
"g": 123,
"b": 33
},
"hsl": {
"h": 62,
"s": 57.692,
"l": 30.588
},
"oklch": {
"l": 0.56299,
"c": 0.10989,
"h": 111.4
},
"luminance": 0.18269
}Semantic roles & 50–950 ramp
primary
#787B21
secondary
#4D4AAE
accent
#47E14C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A