Skip to content

#afdf7f

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

RGB
175, 223, 127
HSL
90°, 60%, 69%
CMYK
22, 0, 43, 13
Luminance
0.6342

Every format

HEX#afdf7f
RGBrgb(175, 223, 127)
HSLhsl(90, 60%, 69%)
CMYKcmyk(22%, 0%, 43%, 13%)
LABlab(83.7 -31.7 42.0)
LCHlch(83.7 52.6 127.1)
OKLCHoklch(0.848 0.134 130.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green87.5%
Blue49.8%

CMYK percentages

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

Color previews

#afdf7f text on a black background

contrast 13.68:1

Card sample

#afdf7f text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf7f in the Color Lab