#797F52#797F52
#797F52 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 58.0% C 0.065 H 114.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).
Color values
| HEX | #797F52 |
|---|---|
| RGB | rgb(121, 127, 82) |
| HSL | hsl(68, 22%, 41%) |
| HSV | hsv(68, 35%, 50%) |
| CMYK | cmyk(4.7%, 0%, 35.4%, 50.2%) |
| CIE-LAB | lab(51.67, -9.98, 23.76) |
| CIE-LCH | lch(51.67, 25.77, 112.79°) |
| OKLab | oklab(57.99% -0.0269 0.0588) |
| OKLCH | oklch(57.99% 0.065 114.6) |
| XYZ | xyz(16.9976, 19.8531, 10.9176) |
| Luminance | 0.1985 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Drab
#828344
ΔE00 4.92
Military Green
#667C3E
ΔE00 6.12
Olive Drab
#6F7632
ΔE00 6.55
Camo
#7F8F4E
ΔE00 6.87
Khaki Green
#728639
ΔE00 7.13
Swamp
#698339
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F52 #58527F
analogous
#7F6E52 #797F52 #627F52
triadic
#797F52 #52797F #7F5279
tetradic
#797F52 #527F6E #58527F #7F5262
square
#797F52 #527F6E #58527F #7F5262
split-complementary
#797F52 #52627F #6E527F
monochromatic
#323522 #565A3A #797F52 #9AA16D #B4B992
Accessibility & contrast
On white
4.22
#797F52 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.97
#797F52 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F52
4.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F52 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F52 | 1.00 | 4.22 | 4.97 | 4.97 |
| #FFFFFF | 4.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#857B4F
Deuteranopia (green-blind)
#857C54
Tritanopia (blue-blind)
#7E7A74
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #797f52; /* rgb */ color: rgb(121, 127, 82); /* oklch */ color: oklch(58.0% 0.065 114.6);
Tailwind
colors: {
custom: {
50: '#a0a483',
500: '#797f52',
950: '#000000',
},
}SCSS
$custom: #797f52; $custom-light: #a0a483; $custom-dark: #000000;
JSON
{
"hex": "#797f52",
"rgb": {
"r": 121,
"g": 127,
"b": 82
},
"hsl": {
"h": 68,
"s": 21.531,
"l": 40.98
},
"oklch": {
"l": 0.57985,
"c": 0.06465,
"h": 114.6
},
"luminance": 0.19853
}Semantic roles & 50–950 ramp
primary
#797F52
secondary
#8B87A6
accent
#6ABE75
background
#F9FAF8
surface
#F2F4EF
border
#CCCECA
text
#0F0F0A
muted
#7E7F7C