#797D2C#797D2C
#797D2C is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.104 H 111.9°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #797D2C |
|---|---|
| RGB | rgb(121, 125, 44) |
| HSL | hsl(63, 48%, 33%) |
| HSV | hsv(63, 65%, 49%) |
| CMYK | cmyk(3.2%, 0%, 64.8%, 51%) |
| CIE-LAB | lab(50.59, -12.82, 42.21) |
| CIE-LCH | lch(50.59, 44.11, 106.90°) |
| OKLab | oklab(56.96% -0.0387 0.0961) |
| OKLCH | oklch(56.96% 0.104 111.9) |
| XYZ | xyz(15.6738, 18.9144, 5.2076) |
| Luminance | 0.1891 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 3.81
Murky Green
#6C7A0E
ΔE00 4.12
Drab
#828344
ΔE00 4.24
Olive (survey)
#6E750E
ΔE00 4.25
Poop Green
#6F7C00
ΔE00 4.37
Shit Green
#758000
ΔE00 4.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797D2C #302C7D
analogous
#7D582C #797D2C #507D2C
triadic
#797D2C #2C797D #7D2C79
tetradic
#797D2C #2C7D58 #302C7D #7D2C50
square
#797D2C #2C7D58 #302C7D #7D2C50
split-complementary
#797D2C #2C507D #582C7D
monochromatic
#21220C #4D501C #797D2C #A5AA3C #C1C65D
Accessibility & contrast
On white
4.39
#797D2C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.78
#797D2C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797D2C
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797D2C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797D2C | 1.00 | 4.39 | 4.78 | 4.78 |
| #FFFFFF | 4.39 | 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)
#867722
Deuteranopia (green-blind)
#877931
Tritanopia (blue-blind)
#81766C
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #797d2c; /* rgb */ color: rgb(121, 125, 44); /* oklch */ color: oklch(57.0% 0.104 111.9);
Tailwind
colors: {
custom: {
50: '#a2a269',
500: '#797d2c',
950: '#000000',
},
}SCSS
$custom: #797d2c; $custom-light: #a2a269; $custom-dark: #000000;
JSON
{
"hex": "#797d2c",
"rgb": {
"r": 121,
"g": 125,
"b": 44
},
"hsl": {
"h": 62.963,
"s": 47.929,
"l": 33.137
},
"oklch": {
"l": 0.5696,
"c": 0.10356,
"h": 111.9
},
"luminance": 0.18914
}Semantic roles & 50–950 ramp
primary
#797D2C
secondary
#5D59AC
accent
#50D857
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A