#797E2C#797E2C
#797E2C is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.105 H 112.6°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).
Color values
| HEX | #797E2C |
|---|---|
| RGB | rgb(121, 126, 44) |
| HSL | hsl(64, 48%, 33%) |
| HSV | hsv(64, 65%, 49%) |
| CMYK | cmyk(4%, 0%, 65.1%, 50.6%) |
| CIE-LAB | lab(50.88, -13.37, 42.52) |
| CIE-LCH | lch(50.88, 44.57, 107.45°) |
| OKLab | oklab(57.2% -0.0402 0.0967) |
| OKLCH | oklch(57.2% 0.105 112.6) |
| XYZ | xyz(15.8011, 19.1688, 5.2500) |
| Luminance | 0.1917 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 4.04
Murky Green
#6C7A0E
ΔE00 4.06
Shit Green
#758000
ΔE00 4.19
Drab
#828344
ΔE00 4.20
Poop Green
#6F7C00
ΔE00 4.27
Olive (survey)
#6E750E
ΔE00 4.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797E2C #312C7E
analogous
#7E5A2C #797E2C #507E2C
triadic
#797E2C #2C797E #7E2C79
tetradic
#797E2C #2C7E5A #312C7E #7E2C50
square
#797E2C #2C7E5A #312C7E #7E2C50
split-complementary
#797E2C #2C507E #5A2C7E
monochromatic
#22230C #4D511C #797E2C #A5AB3C #C0C75E
Accessibility & contrast
On white
4.34
#797E2C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.83
#797E2C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797E2C
4.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797E2C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797E2C | 1.00 | 4.34 | 4.83 | 4.83 |
| #FFFFFF | 4.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.83 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.83 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877822
Deuteranopia (green-blind)
#877A31
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #797e2c; /* rgb */ color: rgb(121, 126, 44); /* oklch */ color: oklch(57.2% 0.105 112.6);
Tailwind
colors: {
custom: {
50: '#a2a369',
500: '#797e2c',
950: '#000000',
},
}SCSS
$custom: #797e2c; $custom-light: #a2a369; $custom-dark: #000000;
JSON
{
"hex": "#797e2c",
"rgb": {
"r": 121,
"g": 126,
"b": 44
},
"hsl": {
"h": 63.659,
"s": 48.235,
"l": 33.333
},
"oklch": {
"l": 0.57198,
"c": 0.10475,
"h": 112.6
},
"luminance": 0.19169
}Semantic roles & 50–950 ramp
primary
#797E2C
secondary
#5E59AD
accent
#50D858
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A