#797F2A#797F2A
#797F2A is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.108 H 113.2°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #797F2A |
|---|---|
| RGB | rgb(121, 127, 42) |
| HSL | hsl(64, 50%, 33%) |
| HSV | hsv(64, 67%, 50%) |
| CMYK | cmyk(4.7%, 0%, 66.9%, 50.2%) |
| CIE-LAB | lab(51.16, -14.04, 43.71) |
| CIE-LCH | lch(51.16, 45.91, 107.81°) |
| OKLab | oklab(57.42% -0.0423 0.0989) |
| OKLCH | oklch(57.42% 0.108 113.2) |
| XYZ | xyz(15.8929, 19.4112, 5.0996) |
| Luminance | 0.1941 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 3.75
Murky Green
#6C7A0E
ΔE00 3.89
Poop Green
#6F7C00
ΔE00 3.97
Drab
#828344
ΔE00 4.43
Olive Drab
#6F7632
ΔE00 4.47
Olive (survey)
#6E750E
ΔE00 4.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F2A #302A7F
analogous
#7F5A2A #797F2A #4E7F2A
triadic
#797F2A #2A797F #7F2A79
tetradic
#797F2A #2A7F5A #302A7F #7F2A4E
square
#797F2A #2A7F5A #302A7F #7F2A4E
split-complementary
#797F2A #2A4E7F #5A2A7F
monochromatic
#21230C #4D511B #797F2A #A5AD39 #C1C95B
Accessibility & contrast
On white
4.30
#797F2A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#797F2A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F2A
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F2A | 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)
#88791F
Deuteranopia (green-blind)
#887B30
Tritanopia (blue-blind)
#81776E
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #797f2a; /* rgb */ color: rgb(121, 127, 42); /* oklch */ color: oklch(57.4% 0.108 113.2);
Tailwind
colors: {
custom: {
50: '#a2a468',
500: '#797f2a',
950: '#000000',
},
}SCSS
$custom: #797f2a; $custom-light: #a2a468; $custom-dark: #000000;
JSON
{
"hex": "#797f2a",
"rgb": {
"r": 121,
"g": 127,
"b": 42
},
"hsl": {
"h": 64.235,
"s": 50.296,
"l": 33.137
},
"oklch": {
"l": 0.57417,
"c": 0.1076,
"h": 113.2
},
"luminance": 0.19411
}Semantic roles & 50–950 ramp
primary
#797F2A
secondary
#5D57AE
accent
#4EDA58
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A