#797D1A#797D1A
#797D1A is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.116 H 112.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #797D1A |
|---|---|
| RGB | rgb(121, 125, 26) |
| HSL | hsl(62, 66%, 30%) |
| HSV | hsv(62, 79%, 49%) |
| CMYK | cmyk(3.2%, 0%, 79.2%, 51%) |
| CIE-LAB | lab(50.46, -13.85, 49.25) |
| CIE-LCH | lch(50.46, 51.16, 105.71°) |
| OKLab | oklab(56.82% -0.0434 0.1077) |
| OKLCH | oklch(56.82% 0.116 112) |
| XYZ | xyz(15.4057, 18.8071, 3.7957) |
| Luminance | 0.1881 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.50
Poop Green
#6F7C00
ΔE00 2.85
Olive
#808000
ΔE00 2.96
Murky Green
#6C7A0E
ΔE00 3.32
Olive (survey)
#6E750E
ΔE00 3.45
Swamp Green
#748500
ΔE00 4.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797D1A #1E1A7D
analogous
#7D501A #797D1A #487D1A
triadic
#797D1A #1A797D #7D1A79
tetradic
#797D1A #1A7D50 #1E1A7D #7D1A48
square
#797D1A #1A7D50 #1E1A7D #7D1A48
split-complementary
#797D1A #1A487D #501A7D
monochromatic
#191905 #484A0F #797D1A #AAB025 #D0D63B
Accessibility & contrast
On white
4.41
#797D1A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.76
#797D1A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797D1A
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797D1A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797D1A | 1.00 | 4.41 | 4.76 | 4.76 |
| #FFFFFF | 4.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877701
Deuteranopia (green-blind)
#887923
Tritanopia (blue-blind)
#82756B
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #797d1a; /* rgb */ color: rgb(121, 125, 26); /* oklch */ color: oklch(56.8% 0.116 112.0);
Tailwind
colors: {
custom: {
50: '#a3a260',
500: '#797d1a',
950: '#000000',
},
}SCSS
$custom: #797d1a; $custom-light: #a3a260; $custom-dark: #000000;
JSON
{
"hex": "#797d1a",
"rgb": {
"r": 121,
"g": 125,
"b": 26
},
"hsl": {
"h": 62.424,
"s": 65.563,
"l": 29.608
},
"oklch": {
"l": 0.56819,
"c": 0.11614,
"h": 112
},
"luminance": 0.18807
}Semantic roles & 50–950 ramp
primary
#797D1A
secondary
#4642B1
accent
#3FE946
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79