#797D26#797D26
#797D26 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 56.9% C 0.108 H 111.9°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #797D26 |
|---|---|
| RGB | rgb(121, 125, 38) |
| HSL | hsl(63, 53%, 32%) |
| HSV | hsv(63, 70%, 49%) |
| CMYK | cmyk(3.2%, 0%, 69.6%, 51%) |
| CIE-LAB | lab(50.54, -13.22, 44.78) |
| CIE-LCH | lch(50.54, 46.69, 106.45°) |
| OKLab | oklab(56.9% -0.0405 0.1005) |
| OKLCH | oklch(56.9% 0.108 111.9) |
| XYZ | xyz(15.5691, 18.8725, 4.6560) |
| Luminance | 0.1887 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 3.61
Murky Green
#6C7A0E
ΔE00 3.65
Poop Green
#6F7C00
ΔE00 3.69
Olive (survey)
#6E750E
ΔE00 3.80
Olive
#808000
ΔE00 4.17
Olive Drab
#6F7632
ΔE00 4.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797D26 #2A267D
analogous
#7D5626 #797D26 #4D7D26
triadic
#797D26 #26797D #7D2679
tetradic
#797D26 #267D56 #2A267D #7D264D
square
#797D26 #267D56 #2A267D #7D264D
split-complementary
#797D26 #264D7D #56267D
monochromatic
#1E1F09 #4C4E18 #797D26 #A6AC34 #C5CB53
Accessibility & contrast
On white
4.40
#797D26 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.77
#797D26 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797D26
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797D26 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797D26 | 1.00 | 4.40 | 4.77 | 4.77 |
| #FFFFFF | 4.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877719
Deuteranopia (green-blind)
#87792C
Tritanopia (blue-blind)
#81756C
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #797d26; /* rgb */ color: rgb(121, 125, 38); /* oklch */ color: oklch(56.9% 0.108 111.9);
Tailwind
colors: {
custom: {
50: '#a2a266',
500: '#797d26',
950: '#000000',
},
}SCSS
$custom: #797d26; $custom-light: #a2a266; $custom-dark: #000000;
JSON
{
"hex": "#797d26",
"rgb": {
"r": 121,
"g": 125,
"b": 38
},
"hsl": {
"h": 62.759,
"s": 53.374,
"l": 31.961
},
"oklch": {
"l": 0.56905,
"c": 0.10835,
"h": 111.9
},
"luminance": 0.18872
}Semantic roles & 50–950 ramp
primary
#797D26
secondary
#5450AF
accent
#4BDD52
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A