#797D1E#797D1E
#797D1E is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.114 H 112.0°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #797D1E |
|---|---|
| RGB | rgb(121, 125, 30) |
| HSL | hsl(63, 61%, 30%) |
| HSV | hsv(63, 76%, 49%) |
| CMYK | cmyk(3.2%, 0%, 76%, 51%) |
| CIE-LAB | lab(50.48, -13.67, 47.88) |
| CIE-LCH | lch(50.48, 49.79, 105.93°) |
| OKLab | oklab(56.84% -0.0425 0.1056) |
| OKLCH | oklch(56.84% 0.114 112) |
| XYZ | xyz(15.4536, 18.8263, 4.0478) |
| Luminance | 0.1883 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.80
Poop Green
#6F7C00
ΔE00 3.05
Olive
#808000
ΔE00 3.31
Murky Green
#6C7A0E
ΔE00 3.35
Olive (survey)
#6E750E
ΔE00 3.49
Swamp Green
#748500
ΔE00 4.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797D1E #221E7D
analogous
#7D511E #797D1E #4A7D1E
triadic
#797D1E #1E797D #7D1E79
tetradic
#797D1E #1E7D51 #221E7D #7D1E4A
square
#797D1E #1E7D51 #221E7D #7D1E4A
split-complementary
#797D1E #1E4A7D #511E7D
monochromatic
#191A06 #494C12 #797D1E #A9AE2A #CCD243
Accessibility & contrast
On white
4.41
#797D1E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.77
#797D1E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797D1E
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797D1E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797D1E | 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)
#87770A
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#82756B
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #797d1e; /* rgb */ color: rgb(121, 125, 30); /* oklch */ color: oklch(56.8% 0.114 112.0);
Tailwind
colors: {
custom: {
50: '#a3a262',
500: '#797d1e',
950: '#000000',
},
}SCSS
$custom: #797d1e; $custom-light: #a3a262; $custom-dark: #000000;
JSON
{
"hex": "#797d1e",
"rgb": {
"r": 121,
"g": 125,
"b": 30
},
"hsl": {
"h": 62.526,
"s": 61.29,
"l": 30.392
},
"oklch": {
"l": 0.56844,
"c": 0.11381,
"h": 112
},
"luminance": 0.18826
}Semantic roles & 50–950 ramp
primary
#797D1E
secondary
#4B46B0
accent
#43E44A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A