Skip to content

#afdf7e

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

RGB
175, 223, 126
HSL
90°, 60%, 68%
CMYK
22, 0, 44, 13
Luminance
0.6340

Every format

HEX#afdf7e
RGBrgb(175, 223, 126)
HSLhsl(90, 60%, 68%)
CMYKcmyk(22%, 0%, 44%, 13%)
LABlab(83.7 -31.8 42.5)
LCHlch(83.7 53.1 126.8)
OKLCHoklch(0.848 0.136 130.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green87.5%
Blue49.4%

CMYK percentages

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

Color previews

#afdf7e text on a black background

contrast 13.68:1

Card sample

#afdf7e text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf7e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf7e in the Color Lab