Skip to content

#a8cb21

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

RGB
168, 203, 33
HSL
72°, 72%, 46%
CMYK
17, 0, 84, 20
Luminance
0.5115

Every format

HEX#a8cb21
RGBrgb(168, 203, 33)
HSLhsl(72, 72%, 46%)
CMYKcmyk(17%, 0%, 84%, 20%)
LABlab(76.8 -32.2 71.8)
LCHlch(76.8 78.7 114.2)
OKLCHoklch(0.789 0.183 121.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a8cb21 on white: 1.87:1
AA ✗ fail · AA-large · AAA
Aa
#a8cb21 on black: 11.23:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red65.9%
Green79.6%
Blue12.9%

CMYK percentages

Cyan17.2%
Magenta0.0%
Yellow83.7%
Key (black)20.4%

Color previews

#a8cb21 text on a black background

contrast 11.23:1

Card sample

#a8cb21 text on a white background

contrast 1.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(168, 203, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(168, 203, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a8cb21;
background: linear-gradient(135deg, #a8cb21, #37CB21);

Monochromatic scale

Palettes built from #a8cb21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a8cb21 in the Color Lab