Skip to content

#afd982

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

RGB
175, 217, 130
HSL
89°, 53%, 68%
CMYK
19, 0, 40, 15
Luminance
0.6035

Every format

HEX#afd982
RGBrgb(175, 217, 130)
HSLhsl(89, 53%, 68%)
CMYKcmyk(19%, 0%, 40%, 15%)
LABlab(82.0 -28.5 38.4)
LCHlch(82.0 47.8 126.6)
OKLCHoklch(0.835 0.122 129.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd982 on white: 1.61:1
AA ✗ fail · AA-large · AAA
Aa
#afd982 on black: 13.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green85.1%
Blue51.0%

CMYK percentages

Cyan19.4%
Magenta0.0%
Yellow40.1%
Key (black)14.9%

Color previews

#afd982 text on a black background

contrast 13.07:1

Card sample

#afd982 text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 217, 130, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 217, 130, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd982;
background: linear-gradient(135deg, #afd982, #82D98F);

Monochromatic scale

Palettes built from #afd982

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd982 in the Color Lab