Skip to content

#afdf92

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

RGB
175, 223, 146
HSL
97°, 55%, 72%
CMYK
22, 0, 35, 13
Luminance
0.6396

Every format

HEX#afdf92
RGBrgb(175, 223, 146)
HSLhsl(97, 55%, 72%)
CMYKcmyk(22%, 0%, 35%, 13%)
LABlab(84.0 -29.2 32.8)
LCHlch(84.0 43.9 131.7)
OKLCHoklch(0.851 0.114 134.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf92 on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#afdf92 on black: 13.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.5%
Blue57.3%

CMYK percentages

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

Color previews

#afdf92 text on a black background

contrast 13.79:1

Card sample

#afdf92 text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf92

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf92 in the Color Lab