Skip to content

#afd202

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

RGB
175, 210, 2
HSL
70°, 98%, 42%
CMYK
17, 0, 99, 18
Luminance
0.5521

Every format

HEX#afd202
RGBrgb(175, 210, 2)
HSLhsl(70, 98%, 42%)
CMYKcmyk(17%, 0%, 99%, 18%)
LABlab(79.2 -33.2 78.4)
LCHlch(79.2 85.1 113.0)
OKLCHoklch(0.809 0.194 121.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd202 on white: 1.74:1
AA ✗ fail · AA-large · AAA
Aa
#afd202 on black: 12.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green82.4%
Blue0.8%

CMYK percentages

Cyan16.7%
Magenta0.0%
Yellow99.0%
Key (black)17.6%

Color previews

#afd202 text on a black background

contrast 12.04:1

Card sample

#afd202 text on a white background

contrast 1.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afd202

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd202 in the Color Lab