Skip to content

#accc2d

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

RGB
172, 204, 45
HSL
72°, 64%, 49%
CMYK
16, 0, 78, 20
Luminance
0.5215

Every format

HEX#accc2d
RGBrgb(172, 204, 45)
HSLhsl(72, 64%, 49%)
CMYKcmyk(16%, 0%, 78%, 20%)
LABlab(77.4 -30.6 69.3)
LCHlch(77.4 75.8 113.9)
OKLCHoklch(0.794 0.177 120.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#accc2d on white: 1.84:1
AA ✗ fail · AA-large · AAA
Aa
#accc2d on black: 11.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green80.0%
Blue17.6%

CMYK percentages

Cyan15.7%
Magenta0.0%
Yellow77.9%
Key (black)20.0%

Color previews

#accc2d text on a black background

contrast 11.43:1

Card sample

#accc2d text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(172, 204, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 204, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #accc2d;
background: linear-gradient(135deg, #accc2d, #42CC2D);

Monochromatic scale

Palettes built from #accc2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #accc2d in the Color Lab