Skip to content

#affc2b

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

RGB
175, 252, 43
HSL
82°, 97%, 58%
CMYK
31, 0, 83, 1
Luminance
0.7891

Every format

HEX#affc2b
RGBrgb(175, 252, 43)
HSLhsl(82, 97%, 58%)
CMYKcmyk(31%, 0%, 83%, 1%)
LABlab(91.2 -50.7 82.2)
LCHlch(91.2 96.5 121.7)
OKLCHoklch(0.907 0.231 129.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green98.8%
Blue16.9%

CMYK percentages

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

Color previews

#affc2b text on a black background

contrast 16.78:1

Card sample

#affc2b text on a white background

contrast 1.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #affc2b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #affc2b in the Color Lab