Skip to content

#afd02c

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

RGB
175, 208, 44
HSL
72°, 65%, 49%
CMYK
16, 0, 79, 18
Luminance
0.5441

Every format

HEX#afd02c
RGBrgb(175, 208, 44)
HSLhsl(72, 65%, 49%)
CMYKcmyk(16%, 0%, 79%, 18%)
LABlab(78.7 -31.4 70.9)
LCHlch(78.7 77.5 113.9)
OKLCHoklch(0.806 0.181 121.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd02c on white: 1.77:1
AA ✗ fail · AA-large · AAA
Aa
#afd02c on black: 11.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green81.6%
Blue17.3%

CMYK percentages

Cyan15.9%
Magenta0.0%
Yellow78.8%
Key (black)18.4%

Color previews

#afd02c text on a black background

contrast 11.88:1

Card sample

#afd02c text on a white background

contrast 1.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 208, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 208, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd02c;
background: linear-gradient(135deg, #afd02c, #42D02C);

Monochromatic scale

Palettes built from #afd02c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd02c in the Color Lab