#797B20#797B20
#797B20 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.4% C 0.110 H 110.7°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).
Color values
| HEX | #797B20 |
|---|---|
| RGB | rgb(121, 123, 32) |
| HSL | hsl(61, 59%, 30%) |
| HSV | hsv(61, 74%, 48%) |
| CMYK | cmyk(1.6%, 0%, 74%, 51.8%) |
| CIE-LAB | lab(49.90, -12.48, 46.57) |
| CIE-LCH | lch(49.90, 48.21, 105.01°) |
| OKLab | oklab(56.38% -0.039 0.1032) |
| OKLCH | oklch(56.38% 0.11 110.7) |
| XYZ | xyz(15.2293, 18.3356, 4.1031) |
| Luminance | 0.1834 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive (survey)
#6E750E
ΔE00 3.19
Poop Green
#6F7C00
ΔE00 3.55
Shit Green
#758000
ΔE00 3.58
Murky Green
#6C7A0E
ΔE00 3.63
Olive
#808000
ΔE00 3.73
Olive Drab
#6F7632
ΔE00 4.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797B20 #22207B
analogous
#7B5020 #797B20 #4B7B20
triadic
#797B20 #20797B #7B2079
tetradic
#797B20 #207B50 #22207B #7B204B
square
#797B20 #207B50 #22207B #7B204B
split-complementary
#797B20 #204B7B #50207B
monochromatic
#191A07 #494A13 #797B20 #A9AC2D #CCCF46
Accessibility & contrast
On white
4.50
#797B20 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.67
#797B20 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797B20
4.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797B20 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797B20 | 1.00 | 4.50 | 4.67 | 4.67 |
| #FFFFFF | 4.50 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.67 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.67 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#85750F
Deuteranopia (green-blind)
#867827
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #797b20; /* rgb */ color: rgb(121, 123, 32); /* oklch */ color: oklch(56.4% 0.110 110.7);
Tailwind
colors: {
custom: {
50: '#a3a162',
500: '#797b20',
950: '#000000',
},
}SCSS
$custom: #797b20; $custom-light: #a3a162; $custom-dark: #000000;
JSON
{
"hex": "#797b20",
"rgb": {
"r": 121,
"g": 123,
"b": 32
},
"hsl": {
"h": 61.319,
"s": 58.71,
"l": 30.392
},
"oklch": {
"l": 0.56382,
"c": 0.11032,
"h": 110.7
},
"luminance": 0.18335
}Semantic roles & 50–950 ramp
primary
#797B20
secondary
#4B49AE
accent
#46E249
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A