Skip to content

#afdf32

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

RGB
175, 223, 50
HSL
77°, 73%, 54%
CMYK
22, 0, 78, 13
Luminance
0.6212

Every format

HEX#afdf32
RGBrgb(175, 223, 50)
HSLhsl(77, 73%, 54%)
CMYKcmyk(22%, 0%, 78%, 13%)
LABlab(83.0 -38.0 73.0)
LCHlch(83.0 82.3 117.5)
OKLCHoklch(0.840 0.195 124.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf32 on white: 1.56:1
AA ✗ fail · AA-large · AAA
Aa
#afdf32 on black: 13.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.5%
Blue19.6%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow77.6%
Key (black)12.5%

Color previews

#afdf32 text on a black background

contrast 13.42:1

Card sample

#afdf32 text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf32

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf32 in the Color Lab