Skip to content

#afd45c

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

RGB
175, 212, 92
HSL
79°, 58%, 60%
CMYK
18, 0, 57, 17
Luminance
0.5697

Every format

HEX#afd45c
RGBrgb(175, 212, 92)
HSLhsl(79, 58%, 60%)
CMYKcmyk(18%, 0%, 57%, 17%)
LABlab(80.2 -30.2 54.3)
LCHlch(80.2 62.2 119.1)
OKLCHoklch(0.819 0.153 124.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green83.1%
Blue36.1%

CMYK percentages

Cyan17.5%
Magenta0.0%
Yellow56.6%
Key (black)16.9%

Color previews

#afd45c text on a black background

contrast 12.39:1

Card sample

#afd45c text on a white background

contrast 1.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afd45c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd45c in the Color Lab