#797C1A#797C1A
#797C1A is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.6% C 0.115 H 111.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #797C1A |
|---|---|
| RGB | rgb(121, 124, 26) |
| HSL | hsl(62, 65%, 29%) |
| HSV | hsv(62, 79%, 49%) |
| CMYK | cmyk(2.4%, 0%, 79%, 51.4%) |
| CIE-LAB | lab(50.16, -13.31, 48.98) |
| CIE-LCH | lch(50.16, 50.76, 105.21°) |
| OKLab | oklab(56.58% -0.0419 0.1071) |
| OKLCH | oklch(56.58% 0.115 111.4) |
| XYZ | xyz(15.2798, 18.5552, 3.7537) |
| Luminance | 0.1855 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.82
Poop Green
#6F7C00
ΔE00 3.01
Olive
#808000
ΔE00 3.05
Olive (survey)
#6E750E
ΔE00 3.24
Murky Green
#6C7A0E
ΔE00 3.40
Swamp Green
#748500
ΔE00 4.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797C1A #1D1A7C
analogous
#7C4E1A #797C1A #487C1A
triadic
#797C1A #1A797C #7C1A79
tetradic
#797C1A #1A7C4E #1D1A7C #7C1A48
square
#797C1A #1A7C4E #1D1A7C #7C1A48
split-complementary
#797C1A #1A487C #4E1A7C
monochromatic
#191905 #48490F #797C1A #AAAF25 #D1D63B
Accessibility & contrast
On white
4.46
#797C1A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.71
#797C1A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797C1A
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797C1A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797C1A | 1.00 | 4.46 | 4.71 | 4.71 |
| #FFFFFF | 4.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867601
Deuteranopia (green-blind)
#877923
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #797c1a; /* rgb */ color: rgb(121, 124, 26); /* oklch */ color: oklch(56.6% 0.115 111.4);
Tailwind
colors: {
custom: {
50: '#a3a160',
500: '#797c1a',
950: '#000000',
},
}SCSS
$custom: #797c1a; $custom-light: #a3a160; $custom-dark: #000000;
JSON
{
"hex": "#797c1a",
"rgb": {
"r": 121,
"g": 124,
"b": 26
},
"hsl": {
"h": 61.837,
"s": 65.333,
"l": 29.412
},
"oklch": {
"l": 0.56581,
"c": 0.11504,
"h": 111.4
},
"luminance": 0.18555
}Semantic roles & 50–950 ramp
primary
#797C1A
secondary
#4542B0
accent
#40E845
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79