Skip to content

#accb2f

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

RGB
172, 203, 47
HSL
72°, 62%, 49%
CMYK
15, 0, 77, 20
Luminance
0.5169

Every format

HEX#accb2f
RGBrgb(172, 203, 47)
HSLhsl(72, 62%, 49%)
CMYKcmyk(15%, 0%, 77%, 20%)
LABlab(77.1 -30.1 68.5)
LCHlch(77.1 74.8 113.7)
OKLCHoklch(0.792 0.175 120.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#accb2f on white: 1.85:1
AA ✗ fail · AA-large · AAA
Aa
#accb2f on black: 11.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green79.6%
Blue18.4%

CMYK percentages

Cyan15.3%
Magenta0.0%
Yellow76.8%
Key (black)20.4%

Color previews

#accb2f text on a black background

contrast 11.34:1

Card sample

#accb2f text on a white background

contrast 1.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(172, 203, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 203, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #accb2f;
background: linear-gradient(135deg, #accb2f, #44CB2F);

Monochromatic scale

Palettes built from #accb2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #accb2f in the Color Lab