Skip to content

#afd28b

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

RGB
175, 210, 139
HSL
90°, 44%, 68%
CMYK
17, 0, 34, 18
Luminance
0.5707

Every format

HEX#afd28b
RGBrgb(175, 210, 139)
HSLhsl(90, 44%, 68%)
CMYKcmyk(17%, 0%, 34%, 18%)
LABlab(80.2 -23.9 31.5)
LCHlch(80.2 39.5 127.2)
OKLCHoklch(0.821 0.102 129.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd28b on white: 1.69:1
AA ✗ fail · AA-large · AAA
Aa
#afd28b on black: 12.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green82.4%
Blue54.5%

CMYK percentages

Cyan16.7%
Magenta0.0%
Yellow33.8%
Key (black)17.6%

Color previews

#afd28b text on a black background

contrast 12.41:1

Card sample

#afd28b text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 210, 139, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 210, 139, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd28b;
background: linear-gradient(135deg, #afd28b, #8BD296);

Monochromatic scale

Palettes built from #afd28b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd28b in the Color Lab