Skip to content

#afdf71

a light, vivid green · cool · closest name: khaki

RGB
175, 223, 113
HSL
86°, 63%, 66%
CMYK
22, 0, 49, 13
Luminance
0.6308

Every format

HEX#afdf71
RGBrgb(175, 223, 113)
HSLhsl(86, 63%, 66%)
CMYKcmyk(22%, 0%, 49%, 13%)
LABlab(83.5 -33.3 48.5)
LCHlch(83.5 58.9 124.4)
OKLCHoklch(0.846 0.148 128.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf71 on white: 1.54:1
AA ✗ fail · AA-large · AAA
Aa
#afdf71 on black: 13.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.5%
Blue44.3%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow49.3%
Key (black)12.5%

Color previews

#afdf71 text on a black background

contrast 13.62:1

Card sample

#afdf71 text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf71

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf71 in the Color Lab