Skip to content

#afdf9d

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

RGB
175, 223, 157
HSL
104°, 51%, 75%
CMYK
22, 0, 30, 13
Luminance
0.6432

Every format

HEX#afdf9d
RGBrgb(175, 223, 157)
HSLhsl(104, 51%, 75%)
CMYKcmyk(22%, 0%, 30%, 13%)
LABlab(84.1 -27.6 27.4)
LCHlch(84.1 38.9 135.1)
OKLCHoklch(0.854 0.102 137.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf9d on white: 1.51:1
AA ✗ fail · AA-large · AAA
Aa
#afdf9d on black: 13.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.5%
Blue61.6%

CMYK percentages

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

Color previews

#afdf9d text on a black background

contrast 13.86:1

Card sample

#afdf9d text on a white background

contrast 1.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf9d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf9d in the Color Lab