Skip to content

#afef1c

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

RGB
175, 239, 28
HSL
78°, 87%, 52%
CMYK
27, 0, 88, 6
Luminance
0.7093

Every format

HEX#afef1c
RGBrgb(175, 239, 28)
HSLhsl(78, 87%, 52%)
CMYKcmyk(27%, 0%, 88%, 6%)
LABlab(87.5 -45.7 81.9)
LCHlch(87.5 93.8 119.1)
OKLCHoklch(0.876 0.221 127.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afef1c on white: 1.38:1
AA ✗ fail · AA-large · AAA
Aa
#afef1c on black: 15.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green93.7%
Blue11.0%

CMYK percentages

Cyan26.8%
Magenta0.0%
Yellow88.3%
Key (black)6.3%

Color previews

#afef1c text on a black background

contrast 15.19:1

Card sample

#afef1c text on a white background

contrast 1.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 239, 28, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 239, 28, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afef1c;
background: linear-gradient(135deg, #afef1c, #23EF1C);

Monochromatic scale

Palettes built from #afef1c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afef1c in the Color Lab