Skip to content

#afdf5e

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

RGB
175, 223, 94
HSL
82°, 67%, 62%
CMYK
22, 0, 58, 13
Luminance
0.6270

Every format

HEX#afdf5e
RGBrgb(175, 223, 94)
HSLhsl(82, 67%, 62%)
CMYKcmyk(22%, 0%, 58%, 13%)
LABlab(83.3 -35.1 57.0)
LCHlch(83.3 67.0 121.7)
OKLCHoklch(0.844 0.166 126.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf5e on white: 1.55:1
AA ✗ fail · AA-large · AAA
Aa
#afdf5e on black: 13.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.5%
Blue36.9%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow57.8%
Key (black)12.5%

Color previews

#afdf5e text on a black background

contrast 13.54:1

Card sample

#afdf5e text on a white background

contrast 1.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf5e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf5e in the Color Lab