#797D28#797D28
#797D28 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 56.9% C 0.107 H 111.9°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #797D28 |
|---|---|
| RGB | rgb(121, 125, 40) |
| HSL | hsl(63, 52%, 32%) |
| HSV | hsv(63, 68%, 49%) |
| CMYK | cmyk(3.2%, 0%, 68%, 51%) |
| CIE-LAB | lab(50.55, -13.10, 43.95) |
| CIE-LCH | lch(50.55, 45.86, 106.60°) |
| OKLab | oklab(56.92% -0.0399 0.0991) |
| OKLCH | oklch(56.92% 0.107 111.9) |
| XYZ | xyz(15.6022, 18.8857, 4.8305) |
| Luminance | 0.1888 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Murky Green
#6C7A0E
ΔE00 3.79
Shit Green
#758000
ΔE00 3.85
Poop Green
#6F7C00
ΔE00 3.90
Olive (survey)
#6E750E
ΔE00 3.93
Olive Drab
#6F7632
ΔE00 4.19
Olive
#808000
ΔE00 4.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797D28 #2C287D
analogous
#7D5728 #797D28 #4E7D28
triadic
#797D28 #28797D #7D2879
tetradic
#797D28 #287D57 #2C287D #7D284E
square
#797D28 #287D57 #2C287D #7D284E
split-complementary
#797D28 #284E7D #57287D
monochromatic
#1F200A #4C4F19 #797D28 #A6AB37 #C4C956
Accessibility & contrast
On white
4.40
#797D28 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.78
#797D28 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797D28
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797D28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797D28 | 1.00 | 4.40 | 4.78 | 4.78 |
| #FFFFFF | 4.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#87771C
Deuteranopia (green-blind)
#87792E
Tritanopia (blue-blind)
#81756C
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #797d28; /* rgb */ color: rgb(121, 125, 40); /* oklch */ color: oklch(56.9% 0.107 111.9);
Tailwind
colors: {
custom: {
50: '#a2a267',
500: '#797d28',
950: '#000000',
},
}SCSS
$custom: #797d28; $custom-light: #a2a267; $custom-dark: #000000;
JSON
{
"hex": "#797d28",
"rgb": {
"r": 121,
"g": 125,
"b": 40
},
"hsl": {
"h": 62.824,
"s": 51.515,
"l": 32.353
},
"oklch": {
"l": 0.56923,
"c": 0.10682,
"h": 111.9
},
"luminance": 0.18885
}Semantic roles & 50–950 ramp
primary
#797D28
secondary
#5753AE
accent
#4DDB54
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A