#797C18#797C18
#797C18 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.116 H 111.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #797C18 |
|---|---|
| RGB | rgb(121, 124, 24) |
| HSL | hsl(62, 68%, 29%) |
| HSV | hsv(62, 81%, 49%) |
| CMYK | cmyk(2.4%, 0%, 80.6%, 51.4%) |
| CIE-LAB | lab(50.15, -13.40, 49.63) |
| CIE-LCH | lch(50.15, 51.40, 105.11°) |
| OKLab | oklab(56.57% -0.0423 0.1081) |
| OKLCH | oklch(56.57% 0.116 111.4) |
| XYZ | xyz(15.2582, 18.5466, 3.6401) |
| Luminance | 0.1855 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.71
Olive
#808000
ΔE00 2.90
Poop Green
#6F7C00
ΔE00 2.93
Olive (survey)
#6E750E
ΔE00 3.23
Murky Green
#6C7A0E
ΔE00 3.40
Swamp Green
#748500
ΔE00 4.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797C18 #1B187C
analogous
#7C4D18 #797C18 #477C18
triadic
#797C18 #18797C #7C1879
tetradic
#797C18 #187C4D #1B187C #7C1847
square
#797C18 #187C4D #1B187C #7C1847
split-complementary
#797C18 #18477C #4D187C
monochromatic
#191A05 #47490E #797C18 #ABAF22 #D3D836
Accessibility & contrast
On white
4.46
#797C18 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.71
#797C18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797C18
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797C18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797C18 | 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)
#867600
Deuteranopia (green-blind)
#877921
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #797c18; /* rgb */ color: rgb(121, 124, 24); /* oklch */ color: oklch(56.6% 0.116 111.4);
Tailwind
colors: {
custom: {
50: '#a3a15f',
500: '#797c18',
950: '#000000',
},
}SCSS
$custom: #797c18; $custom-light: #a3a15f; $custom-dark: #000000;
JSON
{
"hex": "#797c18",
"rgb": {
"r": 121,
"g": 124,
"b": 24
},
"hsl": {
"h": 61.8,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.56569,
"c": 0.11611,
"h": 111.4
},
"luminance": 0.18546
}Semantic roles & 50–950 ramp
primary
#797C18
secondary
#433FB1
accent
#3DEA43
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79