Skip to content

#a6cc21

a balanced, vivid green · cool · closest name: olivedrab

RGB
166, 204, 33
HSL
73°, 72%, 47%
CMYK
19, 0, 84, 20
Luminance
0.5140

Every format

HEX#a6cc21
RGBrgb(166, 204, 33)
HSLhsl(73, 72%, 47%)
CMYKcmyk(19%, 0%, 84%, 20%)
LABlab(76.9 -33.5 71.9)
LCHlch(76.9 79.3 115.0)
OKLCHoklch(0.790 0.185 122.5)

Copy-ready code

/* CSS */
color: #a6cc21;
background-color: #a6cc21;
/* Tailwind (arbitrary) */
class="text-[#a6cc21] bg-[#a6cc21]"
/* SCSS */
$brand: #a6cc21;
/* SwiftUI */
Color(red: 0.651, green: 0.800, blue: 0.129)
/* Android */
Color.parseColor("#a6cc21")

Accessibility — WCAG contrast

Aa
#a6cc21 on white: 1.86:1
AA ✗ fail · AA-large · AAA
Aa
#a6cc21 on black: 11.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red65.1%
Green80.0%
Blue12.9%

CMYK percentages

Cyan18.6%
Magenta0.0%
Yellow83.8%
Key (black)20.0%

Color previews

#a6cc21 text on a black background

contrast 11.28:1

Card sample

#a6cc21 text on a white background

contrast 1.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #a6cc21;
Background color
Panel with #a6cc21 background
background-color: #a6cc21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #a6cc21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(166, 204, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(166, 204, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a6cc21;
background: linear-gradient(135deg, #a6cc21, #34CC21);

Monochromatic scale

Palettes built from #a6cc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a6cc21 in the Color Lab