#797F1A#797F1A
#797F1A is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.118 H 113.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #797F1A |
|---|---|
| RGB | rgb(121, 127, 26) |
| HSL | hsl(64, 66%, 30%) |
| HSV | hsv(64, 80%, 50%) |
| CMYK | cmyk(4.7%, 0%, 79.5%, 50.2%) |
| CIE-LAB | lab(51.06, -14.93, 49.80) |
| CIE-LCH | lch(51.06, 51.99, 106.69°) |
| OKLab | oklab(57.3% -0.0464 0.1089) |
| OKLCH | oklch(57.3% 0.118 113.1) |
| XYZ | xyz(15.6615, 19.3186, 3.8809) |
| Luminance | 0.1932 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 1.99
Poop Green
#6F7C00
ΔE00 2.71
Olive
#808000
ΔE00 2.95
Murky Green
#6C7A0E
ΔE00 3.33
Swamp Green
#748500
ΔE00 3.45
Olive (survey)
#6E750E
ΔE00 3.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F1A #201A7F
analogous
#7F521A #797F1A #477F1A
triadic
#797F1A #1A797F #7F1A79
tetradic
#797F1A #1A7F52 #201A7F #7F1A47
square
#797F1A #1A7F52 #201A7F #7F1A47
split-complementary
#797F1A #1A477F #521A7F
monochromatic
#181905 #494C10 #797F1A #A9B224 #CED73C
Accessibility & contrast
On white
4.32
#797F1A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.86
#797F1A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F1A
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F1A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F1A | 1.00 | 4.32 | 4.86 | 4.86 |
| #FFFFFF | 4.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#897B23
Tritanopia (blue-blind)
#82776C
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #797f1a; /* rgb */ color: rgb(121, 127, 26); /* oklch */ color: oklch(57.3% 0.118 113.1);
Tailwind
colors: {
custom: {
50: '#a3a360',
500: '#797f1a',
950: '#000000',
},
}SCSS
$custom: #797f1a; $custom-light: #a3a360; $custom-dark: #000000;
JSON
{
"hex": "#797f1a",
"rgb": {
"r": 121,
"g": 127,
"b": 26
},
"hsl": {
"h": 63.564,
"s": 66.013,
"l": 30
},
"oklch": {
"l": 0.57297,
"c": 0.11835,
"h": 113.1
},
"luminance": 0.19318
}Semantic roles & 50–950 ramp
primary
#797F1A
secondary
#4942B3
accent
#3FE949
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79