#797C1F#797C1F
#797C1F is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.6% C 0.112 H 111.3°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #797C1F |
|---|---|
| RGB | rgb(121, 124, 31) |
| HSL | hsl(62, 60%, 30%) |
| HSV | hsv(62, 75%, 49%) |
| CMYK | cmyk(2.4%, 0%, 75%, 51.4%) |
| CIE-LAB | lab(50.19, -13.08, 47.23) |
| CIE-LCH | lch(50.19, 49.01, 105.48°) |
| OKLab | oklab(56.61% -0.0408 0.1044) |
| OKLCH | oklch(56.61% 0.112 111.3) |
| XYZ | xyz(15.3406, 18.5796, 4.0742) |
| Luminance | 0.1858 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 3.18
Poop Green
#6F7C00
ΔE00 3.27
Olive (survey)
#6E750E
ΔE00 3.31
Murky Green
#6C7A0E
ΔE00 3.46
Olive
#808000
ΔE00 3.49
Olive Green
#677A04
ΔE00 4.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797C1F #221F7C
analogous
#7C501F #797C1F #4B7C1F
triadic
#797C1F #1F797C #7C1F79
tetradic
#797C1F #1F7C50 #221F7C #7C1F4B
square
#797C1F #1F7C50 #221F7C #7C1F4B
split-complementary
#797C1F #1F4B7C #501F7C
monochromatic
#191A07 #494B13 #797C1F #A9AD2B #CCD045
Accessibility & contrast
On white
4.45
#797C1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.72
#797C1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797C1F
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797C1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797C1F | 1.00 | 4.45 | 4.72 | 4.72 |
| #FFFFFF | 4.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.72 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.72 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#86760D
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #797c1f; /* rgb */ color: rgb(121, 124, 31); /* oklch */ color: oklch(56.6% 0.112 111.3);
Tailwind
colors: {
custom: {
50: '#a3a162',
500: '#797c1f',
950: '#000000',
},
}SCSS
$custom: #797c1f; $custom-light: #a3a162; $custom-dark: #000000;
JSON
{
"hex": "#797c1f",
"rgb": {
"r": 121,
"g": 124,
"b": 31
},
"hsl": {
"h": 61.935,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.56613,
"c": 0.11207,
"h": 111.3
},
"luminance": 0.18579
}Semantic roles & 50–950 ramp
primary
#797C1F
secondary
#4B48AF
accent
#45E34A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A