#797E18#797E18
#797E18 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.0% C 0.118 H 112.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #797E18 |
|---|---|
| RGB | rgb(121, 126, 24) |
| HSL | hsl(63, 68%, 29%) |
| HSV | hsv(63, 81%, 49%) |
| CMYK | cmyk(4%, 0%, 81%, 50.6%) |
| CIE-LAB | lab(50.75, -14.47, 50.16) |
| CIE-LCH | lch(50.75, 52.21, 106.10°) |
| OKLab | oklab(57.05% -0.0453 0.1093) |
| OKLCH | oklch(57.05% 0.118 112.5) |
| XYZ | xyz(15.5114, 19.0530, 3.7245) |
| Luminance | 0.1905 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.08
Poop Green
#6F7C00
ΔE00 2.67
Olive
#808000
ΔE00 2.77
Murky Green
#6C7A0E
ΔE00 3.30
Olive (survey)
#6E750E
ΔE00 3.70
Swamp Green
#748500
ΔE00 3.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797E18 #1D187E
analogous
#7E5018 #797E18 #467E18
triadic
#797E18 #18797E #7E1879
tetradic
#797E18 #187E50 #1D187E #7E1846
square
#797E18 #187E50 #1D187E #7E1846
split-complementary
#797E18 #18467E #50187E
monochromatic
#191A05 #484B0E #797E18 #AAB122 #D1D937
Accessibility & contrast
On white
4.37
#797E18 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.81
#797E18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797E18
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797E18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797E18 | 1.00 | 4.37 | 4.81 | 4.81 |
| #FFFFFF | 4.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#887A21
Tritanopia (blue-blind)
#82766B
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #797e18; /* rgb */ color: rgb(121, 126, 24); /* oklch */ color: oklch(57.0% 0.118 112.5);
Tailwind
colors: {
custom: {
50: '#a3a35f',
500: '#797e18',
950: '#000000',
},
}SCSS
$custom: #797e18; $custom-light: #a3a35f; $custom-dark: #000000;
JSON
{
"hex": "#797e18",
"rgb": {
"r": 121,
"g": 126,
"b": 24
},
"hsl": {
"h": 62.941,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.57047,
"c": 0.11829,
"h": 112.5
},
"luminance": 0.19053
}Semantic roles & 50–950 ramp
primary
#797E18
secondary
#453FB2
accent
#3DEB45
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79