Skip to content

#afdf2e

a balanced, vivid green · cool · closest name: yellow

RGB
175, 223, 46
HSL
76°, 73%, 53%
CMYK
22, 0, 79, 13
Luminance
0.6209

Every format

HEX#afdf2e
RGBrgb(175, 223, 46)
HSLhsl(76, 73%, 53%)
CMYKcmyk(22%, 0%, 79%, 13%)
LABlab(83.0 -38.1 74.2)
LCHlch(83.0 83.4 117.2)
OKLCHoklch(0.840 0.197 124.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green87.5%
Blue18.0%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow79.4%
Key (black)12.5%

Color previews

#afdf2e text on a black background

contrast 13.42:1

Card sample

#afdf2e text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf2e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf2e in the Color Lab