#797D1F#797D1F
#797D1F is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.9% C 0.113 H 112.0°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #797D1F |
|---|---|
| RGB | rgb(121, 125, 31) |
| HSL | hsl(63, 60%, 31%) |
| HSV | hsv(63, 75%, 49%) |
| CMYK | cmyk(3.2%, 0%, 75.2%, 51%) |
| CIE-LAB | lab(50.49, -13.62, 47.51) |
| CIE-LCH | lch(50.49, 49.43, 105.99°) |
| OKLab | oklab(56.85% -0.0423 0.105) |
| OKLCH | oklch(56.85% 0.113 112) |
| XYZ | xyz(15.4666, 18.8315, 4.1162) |
| Luminance | 0.1883 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.89
Poop Green
#6F7C00
ΔE00 3.11
Murky Green
#6C7A0E
ΔE00 3.37
Olive
#808000
ΔE00 3.41
Olive (survey)
#6E750E
ΔE00 3.52
Swamp Green
#748500
ΔE00 4.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797D1F #231F7D
analogous
#7D521F #797D1F #4A7D1F
triadic
#797D1F #1F797D #7D1F79
tetradic
#797D1F #1F7D52 #231F7D #7D1F4A
square
#797D1F #1F7D52 #231F7D #7D1F4A
split-complementary
#797D1F #1F4A7D #521F7D
monochromatic
#1A1B07 #4A4C13 #797D1F #A8AE2B #CBD145
Accessibility & contrast
On white
4.41
#797D1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.77
#797D1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797D1F
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797D1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797D1F | 1.00 | 4.41 | 4.77 | 4.77 |
| #FFFFFF | 4.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#87770C
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#82756B
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #797d1f; /* rgb */ color: rgb(121, 125, 31); /* oklch */ color: oklch(56.9% 0.113 112.0);
Tailwind
colors: {
custom: {
50: '#a3a262',
500: '#797d1f',
950: '#000000',
},
}SCSS
$custom: #797d1f; $custom-light: #a3a262; $custom-dark: #000000;
JSON
{
"hex": "#797d1f",
"rgb": {
"r": 121,
"g": 125,
"b": 31
},
"hsl": {
"h": 62.553,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.56851,
"c": 0.11319,
"h": 112
},
"luminance": 0.18831
}Semantic roles & 50–950 ramp
primary
#797D1F
secondary
#4C48B0
accent
#44E34B
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A