Skip to content

#afd415

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

RGB
175, 212, 21
HSL
72°, 82%, 46%
CMYK
18, 0, 90, 17
Luminance
0.5626

Every format

HEX#afd415
RGBrgb(175, 212, 21)
HSLhsl(72, 82%, 46%)
CMYKcmyk(18%, 0%, 90%, 17%)
LABlab(79.8 -33.9 76.7)
LCHlch(79.8 83.9 113.8)
OKLCHoklch(0.814 0.193 121.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd415 on white: 1.71:1
AA ✗ fail · AA-large · AAA
Aa
#afd415 on black: 12.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green83.1%
Blue8.2%

CMYK percentages

Cyan17.5%
Magenta0.0%
Yellow90.1%
Key (black)16.9%

Color previews

#afd415 text on a black background

contrast 12.25:1

Card sample

#afd415 text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 212, 21, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 212, 21, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd415;
background: linear-gradient(135deg, #afd415, #30D415);

Monochromatic scale

Palettes built from #afd415

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd415 in the Color Lab