#797E21#797E21
#797E21 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.113 H 112.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).
Color values
| HEX | #797E21 |
|---|---|
| RGB | rgb(121, 126, 33) |
| HSL | hsl(63, 58%, 31%) |
| HSV | hsv(63, 74%, 49%) |
| CMYK | cmyk(4%, 0%, 73.8%, 50.6%) |
| CIE-LAB | lab(50.80, -14.05, 47.06) |
| CIE-LCH | lch(50.80, 49.11, 106.63°) |
| OKLab | oklab(57.1% -0.0433 0.1044) |
| OKLCH | oklch(57.1% 0.113 112.5) |
| XYZ | xyz(15.6210, 19.0968, 4.3017) |
| Luminance | 0.1910 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.83
Poop Green
#6F7C00
ΔE00 3.15
Murky Green
#6C7A0E
ΔE00 3.39
Olive
#808000
ΔE00 3.57
Olive (survey)
#6E750E
ΔE00 3.81
Swamp Green
#748500
ΔE00 4.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797E21 #26217E
analogous
#7E5421 #797E21 #4A7E21
triadic
#797E21 #21797E #7E2179
tetradic
#797E21 #217E54 #26217E #7E214A
square
#797E21 #217E54 #26217E #7E214A
split-complementary
#797E21 #214A7E #54217E
monochromatic
#1C1D08 #4A4E14 #797E21 #A8AE2E #C8D04A
Accessibility & contrast
On white
4.36
#797E21 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.82
#797E21 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797E21
4.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797E21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797E21 | 1.00 | 4.36 | 4.82 | 4.82 |
| #FFFFFF | 4.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887810
Deuteranopia (green-blind)
#887A28
Tritanopia (blue-blind)
#81766C
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #797e21; /* rgb */ color: rgb(121, 126, 33); /* oklch */ color: oklch(57.1% 0.113 112.5);
Tailwind
colors: {
custom: {
50: '#a3a363',
500: '#797e21',
950: '#000000',
},
}SCSS
$custom: #797e21; $custom-light: #a3a363; $custom-dark: #000000;
JSON
{
"hex": "#797e21",
"rgb": {
"r": 121,
"g": 126,
"b": 33
},
"hsl": {
"h": 63.226,
"s": 58.491,
"l": 31.176
},
"oklch": {
"l": 0.57104,
"c": 0.11302,
"h": 112.5
},
"luminance": 0.19096
}Semantic roles & 50–950 ramp
primary
#797E21
secondary
#504AB1
accent
#46E24E
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A