#797A1F#797A1F
#797A1F is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.1% C 0.110 H 110.1°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).
Color values
| HEX | #797A1F |
|---|---|
| RGB | rgb(121, 122, 31) |
| HSL | hsl(61, 59%, 30%) |
| HSV | hsv(61, 75%, 48%) |
| CMYK | cmyk(0.8%, 0%, 74.6%, 52.2%) |
| CIE-LAB | lab(49.60, -11.99, 46.66) |
| CIE-LCH | lch(49.60, 48.18, 104.41°) |
| OKLab | oklab(56.14% -0.0378 0.1032) |
| OKLCH | oklch(56.14% 0.11 110.1) |
| XYZ | xyz(15.0925, 18.0834, 3.9915) |
| Luminance | 0.1808 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive (survey)
#6E750E
ΔE00 3.06
Poop Green
#6F7C00
ΔE00 3.73
Murky Green
#6C7A0E
ΔE00 3.79
Olive
#808000
ΔE00 3.81
Shit Green
#758000
ΔE00 3.86
Olive Drab
#6F7632
ΔE00 4.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797A1F #201F7A
analogous
#7A4D1F #797A1F #4C7A1F
triadic
#797A1F #1F797A #7A1F79
tetradic
#797A1F #1F7A4D #201F7A #7A1F4C
square
#797A1F #1F7A4D #201F7A #7A1F4C
split-complementary
#797A1F #1F4C7A #4D1F7A
monochromatic
#181806 #494913 #797A1F #A9AB2B #CECF44
Accessibility & contrast
On white
4.55
#797A1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.62
#797A1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797A1F
4.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797A1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797A1F | 1.00 | 4.55 | 4.62 | 4.62 |
| #FFFFFF | 4.55 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.62 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.62 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#84750E
Deuteranopia (green-blind)
#857726
Tritanopia (blue-blind)
#827268
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #797a1f; /* rgb */ color: rgb(121, 122, 31); /* oklch */ color: oklch(56.1% 0.110 110.1);
Tailwind
colors: {
custom: {
50: '#a3a062',
500: '#797a1f',
950: '#000000',
},
}SCSS
$custom: #797a1f; $custom-light: #a3a062; $custom-dark: #000000;
JSON
{
"hex": "#797a1f",
"rgb": {
"r": 121,
"g": 122,
"b": 31
},
"hsl": {
"h": 60.659,
"s": 59.477,
"l": 30
},
"oklch": {
"l": 0.56137,
"c": 0.10988,
"h": 110.1
},
"luminance": 0.18083
}Semantic roles & 50–950 ramp
primary
#797A1F
secondary
#4947AD
accent
#45E347
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A