#787F21#787F21
#787F21 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.114 H 113.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #787F21 |
|---|---|
| RGB | rgb(120, 127, 33) |
| HSL | hsl(64, 59%, 31%) |
| HSV | hsv(64, 74%, 50%) |
| CMYK | cmyk(5.5%, 0%, 74%, 50.2%) |
| CIE-LAB | lab(51.02, -15.04, 47.24) |
| CIE-LCH | lch(51.02, 49.57, 107.67°) |
| OKLab | oklab(57.26% -0.046 0.1048) |
| OKLCH | oklch(57.26% 0.114 113.7) |
| XYZ | xyz(15.6101, 19.2819, 4.3380) |
| Luminance | 0.1928 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.59
Poop Green
#6F7C00
ΔE00 2.96
Murky Green
#6C7A0E
ΔE00 3.21
Swamp Green
#748500
ΔE00 3.73
Olive
#808000
ΔE00 3.80
Olive (survey)
#6E750E
ΔE00 4.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787F21 #28217F
analogous
#7F5721 #787F21 #497F21
triadic
#787F21 #21787F #7F2178
tetradic
#787F21 #217F57 #28217F #7F2149
square
#787F21 #217F57 #28217F #7F2149
split-complementary
#787F21 #21497F #57217F
monochromatic
#1C1E08 #4A4E14 #787F21 #A6B02E #C6D04A
Accessibility & contrast
On white
4.32
#787F21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.86
#787F21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787F21
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787F21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787F21 | 1.00 | 4.32 | 4.86 | 4.86 |
| #FFFFFF | 4.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#897910
Deuteranopia (green-blind)
#897A28
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #787f21; /* rgb */ color: rgb(120, 127, 33); /* oklch */ color: oklch(57.3% 0.114 113.7);
Tailwind
colors: {
custom: {
50: '#a2a463',
500: '#787f21',
950: '#000000',
},
}SCSS
$custom: #787f21; $custom-light: #a2a463; $custom-dark: #000000;
JSON
{
"hex": "#787f21",
"rgb": {
"r": 120,
"g": 127,
"b": 33
},
"hsl": {
"h": 64.468,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.57256,
"c": 0.11446,
"h": 113.7
},
"luminance": 0.19282
}Semantic roles & 50–950 ramp
primary
#787F21
secondary
#524AB2
accent
#46E251
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A