Skip to content

#afd802

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

RGB
175, 216, 2
HSL
72°, 98%, 43%
CMYK
19, 0, 99, 15
Luminance
0.5823

Every format

HEX#afd802
RGBrgb(175, 216, 2)
HSLhsl(72, 98%, 43%)
CMYKcmyk(19%, 0%, 99%, 15%)
LABlab(80.9 -36.0 79.7)
LCHlch(80.9 87.4 114.3)
OKLCHoklch(0.823 0.200 122.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd802 on white: 1.66:1
AA ✗ fail · AA-large · AAA
Aa
#afd802 on black: 12.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green84.7%
Blue0.8%

CMYK percentages

Cyan19.0%
Magenta0.0%
Yellow99.1%
Key (black)15.3%

Color previews

#afd802 text on a black background

contrast 12.65:1

Card sample

#afd802 text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afd802

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd802 in the Color Lab