Skip to content

#afcc52

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

RGB
175, 204, 82
HSL
74°, 55%, 56%
CMYK
14, 0, 60, 20
Luminance
0.5291

Every format

HEX#afcc52
RGBrgb(175, 204, 82)
HSLhsl(74, 55%, 56%)
CMYKcmyk(14%, 0%, 60%, 20%)
LABlab(77.8 -27.2 56.1)
LCHlch(77.8 62.4 115.9)
OKLCHoklch(0.799 0.151 121.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afcc52 on white: 1.81:1
AA ✗ fail · AA-large · AAA
Aa
#afcc52 on black: 11.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green80.0%
Blue32.2%

CMYK percentages

Cyan14.2%
Magenta0.0%
Yellow59.8%
Key (black)20.0%

Color previews

#afcc52 text on a black background

contrast 11.58:1

Card sample

#afcc52 text on a white background

contrast 1.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 204, 82, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 204, 82, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afcc52;
background: linear-gradient(135deg, #afcc52, #5ECC52);

Monochromatic scale

Palettes built from #afcc52

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afcc52 in the Color Lab