#797E1A#797E1A
#797E1A is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.117 H 112.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #797E1A |
|---|---|
| RGB | rgb(121, 126, 26) |
| HSL | hsl(63, 66%, 30%) |
| HSV | hsv(63, 79%, 49%) |
| CMYK | cmyk(4%, 0%, 79.4%, 50.6%) |
| CIE-LAB | lab(50.76, -14.39, 49.53) |
| CIE-LCH | lch(50.76, 51.57, 106.20°) |
| OKLab | oklab(57.06% -0.0449 0.1083) |
| OKLCH | oklch(57.06% 0.117 112.5) |
| XYZ | xyz(15.5330, 19.0616, 3.8381) |
| Luminance | 0.1906 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.22
Poop Green
#6F7C00
ΔE00 2.74
Olive
#808000
ΔE00 2.93
Murky Green
#6C7A0E
ΔE00 3.29
Olive (survey)
#6E750E
ΔE00 3.70
Swamp Green
#748500
ΔE00 3.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797E1A #1F1A7E
analogous
#7E511A #797E1A #477E1A
triadic
#797E1A #1A797E #7E1A79
tetradic
#797E1A #1A7E51 #1F1A7E #7E1A47
square
#797E1A #1A7E51 #1F1A7E #7E1A47
split-complementary
#797E1A #1A477E #511A7E
monochromatic
#181905 #484B10 #797E1A #AAB124 #CFD73C
Accessibility & contrast
On white
4.36
#797E1A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.81
#797E1A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797E1A
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797E1A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797E1A | 1.00 | 4.36 | 4.81 | 4.81 |
| #FFFFFF | 4.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#887A23
Tritanopia (blue-blind)
#82766B
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #797e1a; /* rgb */ color: rgb(121, 126, 26); /* oklch */ color: oklch(57.1% 0.117 112.5);
Tailwind
colors: {
custom: {
50: '#a3a360',
500: '#797e1a',
950: '#000000',
},
}SCSS
$custom: #797e1a; $custom-light: #a3a360; $custom-dark: #000000;
JSON
{
"hex": "#797e1a",
"rgb": {
"r": 121,
"g": 126,
"b": 26
},
"hsl": {
"h": 63,
"s": 65.789,
"l": 29.804
},
"oklch": {
"l": 0.57058,
"c": 0.11724,
"h": 112.5
},
"luminance": 0.19061
}Semantic roles & 50–950 ramp
primary
#797E1A
secondary
#4742B2
accent
#3FE948
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79