Skip to content

#afdf7d

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

RGB
175, 223, 125
HSL
89°, 61%, 68%
CMYK
22, 0, 44, 13
Luminance
0.6337

Every format

HEX#afdf7d
RGBrgb(175, 223, 125)
HSLhsl(89, 61%, 68%)
CMYKcmyk(22%, 0%, 44%, 13%)
LABlab(83.6 -31.9 42.9)
LCHlch(83.6 53.5 126.6)
OKLCHoklch(0.848 0.137 130.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green87.5%
Blue49.0%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow43.9%
Key (black)12.5%

Color previews

#afdf7d text on a black background

contrast 13.67:1

Card sample

#afdf7d text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf7d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf7d in the Color Lab