Skip to content

#afd270

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

RGB
175, 210, 112
HSL
81°, 52%, 63%
CMYK
17, 0, 47, 18
Luminance
0.5638

Every format

HEX#afd270
RGBrgb(175, 210, 112)
HSLhsl(81, 52%, 63%)
CMYKcmyk(17%, 0%, 47%, 18%)
LABlab(79.8 -27.3 44.6)
LCHlch(79.8 52.3 121.5)
OKLCHoklch(0.817 0.131 125.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd270 on white: 1.71:1
AA ✗ fail · AA-large · AAA
Aa
#afd270 on black: 12.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green82.4%
Blue43.9%

CMYK percentages

Cyan16.7%
Magenta0.0%
Yellow46.7%
Key (black)17.6%

Color previews

#afd270 text on a black background

contrast 12.28:1

Card sample

#afd270 text on a white background

contrast 1.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 210, 112, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 210, 112, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd270;
background: linear-gradient(135deg, #afd270, #70D272);

Monochromatic scale

Palettes built from #afd270

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd270 in the Color Lab