Skip to content

#a4cb21

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

RGB
164, 203, 33
HSL
74°, 72%, 46%
CMYK
19, 0, 84, 20
Luminance
0.5071

Every format

HEX#a4cb21
RGBrgb(164, 203, 33)
HSLhsl(74, 72%, 46%)
CMYKcmyk(19%, 0%, 84%, 20%)
LABlab(76.5 -33.8 71.5)
LCHlch(76.5 79.1 115.3)
OKLCHoklch(0.786 0.184 122.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a4cb21 on white: 1.88:1
AA ✗ fail · AA-large · AAA
Aa
#a4cb21 on black: 11.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red64.3%
Green79.6%
Blue12.9%

CMYK percentages

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

Color previews

#a4cb21 text on a black background

contrast 11.14:1

Card sample

#a4cb21 text on a white background

contrast 1.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a4cb21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #a4cb21 in the Color Lab