#797F2B#797F2B
#797F2B is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.107 H 113.2°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #797F2B |
|---|---|
| RGB | rgb(121, 127, 43) |
| HSL | hsl(64, 49%, 33%) |
| HSV | hsv(64, 66%, 50%) |
| CMYK | cmyk(4.7%, 0%, 66.1%, 50.2%) |
| CIE-LAB | lab(51.17, -13.98, 43.28) |
| CIE-LCH | lch(51.17, 45.48, 107.90°) |
| OKLab | oklab(57.43% -0.042 0.0982) |
| OKLCH | oklch(57.43% 0.107 113.2) |
| XYZ | xyz(15.9110, 19.4184, 5.1950) |
| Luminance | 0.1942 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 3.89
Murky Green
#6C7A0E
ΔE00 3.97
Poop Green
#6F7C00
ΔE00 4.09
Drab
#828344
ΔE00 4.31
Olive Drab
#6F7632
ΔE00 4.39
Olive (survey)
#6E750E
ΔE00 4.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F2B #312B7F
analogous
#7F5B2B #797F2B #4F7F2B
triadic
#797F2B #2B797F #7F2B79
tetradic
#797F2B #2B7F5B #312B7F #7F2B4F
square
#797F2B #2B7F5B #312B7F #7F2B4F
split-complementary
#797F2B #2B4F7F #5B2B7F
monochromatic
#22240C #4D511C #797F2B #A5AD3A #C0C85C
Accessibility & contrast
On white
4.30
#797F2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#797F2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F2B
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F2B | 1.00 | 4.30 | 4.88 | 4.88 |
| #FFFFFF | 4.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887920
Deuteranopia (green-blind)
#887B31
Tritanopia (blue-blind)
#81776E
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #797f2b; /* rgb */ color: rgb(121, 127, 43); /* oklch */ color: oklch(57.4% 0.107 113.2);
Tailwind
colors: {
custom: {
50: '#a2a469',
500: '#797f2b',
950: '#000000',
},
}SCSS
$custom: #797f2b; $custom-light: #a2a469; $custom-dark: #000000;
JSON
{
"hex": "#797f2b",
"rgb": {
"r": 121,
"g": 127,
"b": 43
},
"hsl": {
"h": 64.286,
"s": 49.412,
"l": 33.333
},
"oklch": {
"l": 0.57426,
"c": 0.10678,
"h": 113.2
},
"luminance": 0.19418
}Semantic roles & 50–950 ramp
primary
#797F2B
secondary
#5E58AE
accent
#4FD959
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A