#797E1F#797E1F
#797E1F is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.114 H 112.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).
Color values
| HEX | #797E1F |
|---|---|
| RGB | rgb(121, 126, 31) |
| HSL | hsl(63, 61%, 31%) |
| HSV | hsv(63, 75%, 49%) |
| CMYK | cmyk(4%, 0%, 75.4%, 50.6%) |
| CIE-LAB | lab(50.79, -14.16, 47.80) |
| CIE-LCH | lch(50.79, 49.85, 106.50°) |
| OKLab | oklab(57.09% -0.0438 0.1056) |
| OKLCH | oklch(57.09% 0.114 112.5) |
| XYZ | xyz(15.5938, 19.0859, 4.1586) |
| Luminance | 0.1909 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.63
Poop Green
#6F7C00
ΔE00 3.01
Murky Green
#6C7A0E
ΔE00 3.34
Olive
#808000
ΔE00 3.37
Olive (survey)
#6E750E
ΔE00 3.76
Swamp Green
#748500
ΔE00 4.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797E1F #241F7E
analogous
#7E531F #797E1F #497E1F
triadic
#797E1F #1F797E #7E1F79
tetradic
#797E1F #1F7E53 #241F7E #7E1F49
square
#797E1F #1F7E53 #241F7E #7E1F49
split-complementary
#797E1F #1F497E #531F7E
monochromatic
#1B1C07 #4A4D13 #797E1F #A8AF2B #CAD146
Accessibility & contrast
On white
4.36
#797E1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.82
#797E1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797E1F
4.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797E1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797E1F | 1.00 | 4.36 | 4.82 | 4.82 |
| #FFFFFF | 4.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#88780C
Deuteranopia (green-blind)
#887A27
Tritanopia (blue-blind)
#82766C
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #797e1f; /* rgb */ color: rgb(121, 126, 31); /* oklch */ color: oklch(57.1% 0.114 112.5);
Tailwind
colors: {
custom: {
50: '#a3a362',
500: '#797e1f',
950: '#000000',
},
}SCSS
$custom: #797e1f; $custom-light: #a3a362; $custom-dark: #000000;
JSON
{
"hex": "#797e1f",
"rgb": {
"r": 121,
"g": 126,
"b": 31
},
"hsl": {
"h": 63.158,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.5709,
"c": 0.11431,
"h": 112.5
},
"luminance": 0.19086
}Semantic roles & 50–950 ramp
primary
#797E1F
secondary
#4D48B1
accent
#44E44D
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A