#797C2A#797C2A
#797C2A is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.7% C 0.104 H 111.3°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).
Color values
| HEX | #797C2A |
|---|---|
| RGB | rgb(121, 124, 42) |
| HSL | hsl(62, 49%, 33%) |
| HSV | hsv(62, 66%, 49%) |
| CMYK | cmyk(2.4%, 0%, 66.1%, 51.4%) |
| CIE-LAB | lab(50.27, -12.42, 42.78) |
| CIE-LCH | lch(50.27, 44.54, 106.19°) |
| OKLab | oklab(56.7% -0.0378 0.0969) |
| OKLCH | oklch(56.7% 0.104 111.3) |
| XYZ | xyz(15.5112, 18.6478, 4.9723) |
| Luminance | 0.1865 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 3.81
Olive (survey)
#6E750E
ΔE00 3.93
Murky Green
#6C7A0E
ΔE00 4.04
Poop Green
#6F7C00
ΔE00 4.28
Shit Green
#758000
ΔE00 4.35
Drab
#828344
ΔE00 4.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797C2A #2D2A7C
analogous
#7C562A #797C2A #507C2A
triadic
#797C2A #2A797C #7C2A79
tetradic
#797C2A #2A7C56 #2D2A7C #7C2A50
square
#797C2A #2A7C56 #2D2A7C #7C2A50
split-complementary
#797C2A #2A507C #562A7C
monochromatic
#20210B #4C4E1B #797C2A #A6AA39 #C3C759
Accessibility & contrast
On white
4.44
#797C2A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.73
#797C2A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797C2A
4.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797C2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797C2A | 1.00 | 4.44 | 4.73 | 4.73 |
| #FFFFFF | 4.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#86761F
Deuteranopia (green-blind)
#86792F
Tritanopia (blue-blind)
#81746B
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #797c2a; /* rgb */ color: rgb(121, 124, 42); /* oklch */ color: oklch(56.7% 0.104 111.3);
Tailwind
colors: {
custom: {
50: '#a2a168',
500: '#797c2a',
950: '#000000',
},
}SCSS
$custom: #797c2a; $custom-light: #a2a168; $custom-dark: #000000;
JSON
{
"hex": "#797c2a",
"rgb": {
"r": 121,
"g": 124,
"b": 42
},
"hsl": {
"h": 62.195,
"s": 49.398,
"l": 32.549
},
"oklch": {
"l": 0.56703,
"c": 0.10405,
"h": 111.3
},
"luminance": 0.18647
}Semantic roles & 50–950 ramp
primary
#797C2A
secondary
#5855AD
accent
#4FD954
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A