#787C21#787C21
#787C21 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.5% C 0.111 H 112.0°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).
Color values
| HEX | #787C21 |
|---|---|
| RGB | rgb(120, 124, 33) |
| HSL | hsl(63, 58%, 31%) |
| HSV | hsv(63, 73%, 49%) |
| CMYK | cmyk(3.2%, 0%, 73.4%, 51.4%) |
| CIE-LAB | lab(50.12, -13.43, 46.36) |
| CIE-LCH | lch(50.12, 48.27, 106.15°) |
| OKLab | oklab(56.54% -0.0415 0.103) |
| OKLCH | oklch(56.54% 0.111 112) |
| XYZ | xyz(15.2284, 18.5185, 4.2108) |
| Luminance | 0.1852 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Poop Green
#6F7C00
ΔE00 3.22
Olive (survey)
#6E750E
ΔE00 3.24
Murky Green
#6C7A0E
ΔE00 3.26
Shit Green
#758000
ΔE00 3.26
Olive
#808000
ΔE00 3.87
Olive Green
#677A04
ΔE00 4.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787C21 #25217C
analogous
#7C5221 #787C21 #4A7C21
triadic
#787C21 #21787C #7C2178
tetradic
#787C21 #217C52 #25217C #7C214A
square
#787C21 #217C52 #25217C #7C214A
split-complementary
#787C21 #214A7C #52217C
monochromatic
#1A1B07 #494C14 #787C21 #A7AC2E #C9CF49
Accessibility & contrast
On white
4.46
#787C21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.70
#787C21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787C21
4.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787C21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787C21 | 1.00 | 4.46 | 4.70 | 4.70 |
| #FFFFFF | 4.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.70 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.70 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867611
Deuteranopia (green-blind)
#867828
Tritanopia (blue-blind)
#80746A
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #787c21; /* rgb */ color: rgb(120, 124, 33); /* oklch */ color: oklch(56.5% 0.111 112.0);
Tailwind
colors: {
custom: {
50: '#a2a163',
500: '#787c21',
950: '#000000',
},
}SCSS
$custom: #787c21; $custom-light: #a2a163; $custom-dark: #000000;
JSON
{
"hex": "#787c21",
"rgb": {
"r": 120,
"g": 124,
"b": 33
},
"hsl": {
"h": 62.637,
"s": 57.962,
"l": 30.784
},
"oklch": {
"l": 0.56538,
"c": 0.11103,
"h": 112
},
"luminance": 0.18518
}Semantic roles & 50–950 ramp
primary
#787C21
secondary
#4E4AAF
accent
#47E14D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A