Skip to content

#afd460

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

RGB
175, 212, 96
HSL
79°, 57%, 60%
CMYK
18, 0, 55, 17
Luminance
0.5705

Every format

HEX#afd460
RGBrgb(175, 212, 96)
HSLhsl(79, 57%, 60%)
CMYKcmyk(18%, 0%, 55%, 17%)
LABlab(80.2 -29.9 52.6)
LCHlch(80.2 60.5 119.6)
OKLCHoklch(0.819 0.150 124.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green83.1%
Blue37.6%

CMYK percentages

Cyan17.5%
Magenta0.0%
Yellow54.7%
Key (black)16.9%

Color previews

#afd460 text on a black background

contrast 12.41:1

Card sample

#afd460 text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 212, 96, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 212, 96, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd460;
background: linear-gradient(135deg, #afd460, #62D460);

Monochromatic scale

Palettes built from #afd460

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd460 in the Color Lab