Skip to content

#affc2d

a balanced, electric green · cool · closest name: yellow

RGB
175, 252, 45
HSL
82°, 97%, 58%
CMYK
31, 0, 82, 1
Luminance
0.7892

Every format

HEX#affc2d
RGBrgb(175, 252, 45)
HSLhsl(82, 97%, 58%)
CMYKcmyk(31%, 0%, 82%, 1%)
LABlab(91.2 -50.6 81.7)
LCHlch(91.2 96.1 121.8)
OKLCHoklch(0.907 0.230 129.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#affc2d on white: 1.25:1
AA ✗ fail · AA-large · AAA
Aa
#affc2d on black: 16.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green98.8%
Blue17.6%

CMYK percentages

Cyan30.6%
Magenta0.0%
Yellow82.1%
Key (black)1.2%

Color previews

#affc2d text on a black background

contrast 16.78:1

Card sample

#affc2d text on a white background

contrast 1.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 252, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 252, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #affc2d;
background: linear-gradient(135deg, #affc2d, #2DFC35);

Monochromatic scale

Palettes built from #affc2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #affc2d in the Color Lab