#797E2D#797E2D
#797E2D is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.104 H 112.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).
Color values
| HEX | #797E2D |
|---|---|
| RGB | rgb(121, 126, 45) |
| HSL | hsl(64, 47%, 34%) |
| HSV | hsv(64, 64%, 49%) |
| CMYK | cmyk(4%, 0%, 64.3%, 50.6%) |
| CIE-LAB | lab(50.89, -13.29, 42.08) |
| CIE-LCH | lch(50.89, 44.13, 107.53°) |
| OKLab | oklab(57.21% -0.0399 0.0959) |
| OKLCH | oklch(57.21% 0.104 112.6) |
| XYZ | xyz(15.8201, 19.1764, 5.3502) |
| Luminance | 0.1918 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Drab
#6F7632
ΔE00 3.96
Drab
#828344
ΔE00 4.08
Murky Green
#6C7A0E
ΔE00 4.16
Shit Green
#758000
ΔE00 4.33
Poop Green
#6F7C00
ΔE00 4.40
Olive (survey)
#6E750E
ΔE00 4.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797E2D #322D7E
analogous
#7E5A2D #797E2D #507E2D
triadic
#797E2D #2D797E #7E2D79
tetradic
#797E2D #2D7E5A #322D7E #7E2D50
square
#797E2D #2D7E5A #322D7E #7E2D50
split-complementary
#797E2D #2D507E #5A2D7E
monochromatic
#22240D #4E511D #797E2D #A4AB3D #C0C65F
Accessibility & contrast
On white
4.34
#797E2D on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.84
#797E2D on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797E2D
4.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797E2D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797E2D | 1.00 | 4.34 | 4.84 | 4.84 |
| #FFFFFF | 4.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.84 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.84 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877823
Deuteranopia (green-blind)
#877A32
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #797e2d; /* rgb */ color: rgb(121, 126, 45); /* oklch */ color: oklch(57.2% 0.104 112.6);
Tailwind
colors: {
custom: {
50: '#a2a36a',
500: '#797e2d',
950: '#000000',
},
}SCSS
$custom: #797e2d; $custom-light: #a2a36a; $custom-dark: #000000;
JSON
{
"hex": "#797e2d",
"rgb": {
"r": 121,
"g": 126,
"b": 45
},
"hsl": {
"h": 63.704,
"s": 47.368,
"l": 33.529
},
"oklch": {
"l": 0.57208,
"c": 0.10391,
"h": 112.6
},
"luminance": 0.19176
}Semantic roles & 50–950 ramp
primary
#797E2D
secondary
#5F5AAC
accent
#51D759
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A