Skip to content

#afdc80

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

RGB
175, 220, 128
HSL
89°, 57%, 68%
CMYK
21, 0, 42, 14
Luminance
0.6186

Every format

HEX#afdc80
RGBrgb(175, 220, 128)
HSLhsl(89, 57%, 68%)
CMYKcmyk(21%, 0%, 42%, 14%)
LABlab(82.8 -30.2 40.5)
LCHlch(82.8 50.5 126.7)
OKLCHoklch(0.842 0.129 130.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdc80 on white: 1.57:1
AA ✗ fail · AA-large · AAA
Aa
#afdc80 on black: 13.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green86.3%
Blue50.2%

CMYK percentages

Cyan20.5%
Magenta0.0%
Yellow41.8%
Key (black)13.7%

Color previews

#afdc80 text on a black background

contrast 13.37:1

Card sample

#afdc80 text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 220, 128, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 220, 128, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afdc80;
background: linear-gradient(135deg, #afdc80, #80DC8E);

Monochromatic scale

Palettes built from #afdc80

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdc80 in the Color Lab