Skip to content

#afff2f

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

RGB
175, 255, 47
HSL
83°, 100%, 59%
CMYK
31, 0, 82, 0
Luminance
0.8084

Every format

HEX#afff2f
RGBrgb(175, 255, 47)
HSLhsl(83, 100%, 59%)
CMYKcmyk(31%, 0%, 82%, 0%)
LABlab(92.1 -51.8 82.0)
LCHlch(92.1 97.0 122.3)
OKLCHoklch(0.914 0.233 129.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afff2f on white: 1.22:1
AA ✗ fail · AA-large · AAA
Aa
#afff2f on black: 17.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green100.0%
Blue18.4%

CMYK percentages

Cyan31.4%
Magenta0.0%
Yellow81.6%
Key (black)0.0%

Color previews

#afff2f text on a black background

contrast 17.17:1

Card sample

#afff2f text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afff2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afff2f in the Color Lab