Skip to content

#afdf20

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

RGB
175, 223, 32
HSL
75°, 75%, 50%
CMYK
22, 0, 86, 13
Luminance
0.6199

Every format

HEX#afdf20
RGBrgb(175, 223, 32)
HSLhsl(75, 75%, 50%)
CMYKcmyk(22%, 0%, 86%, 13%)
LABlab(82.9 -38.6 77.4)
LCHlch(82.9 86.5 116.5)
OKLCHoklch(0.840 0.202 124.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf20 on white: 1.57:1
AA ✗ fail · AA-large · AAA
Aa
#afdf20 on black: 13.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.5%
Blue12.5%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow85.7%
Key (black)12.5%

Color previews

#afdf20 text on a black background

contrast 13.40:1

Card sample

#afdf20 text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf20

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf20 in the Color Lab