Skip to content

#afd975

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

RGB
175, 217, 117
HSL
85°, 57%, 66%
CMYK
19, 0, 46, 15
Luminance
0.6002

Every format

HEX#afd975
RGBrgb(175, 217, 117)
HSLhsl(85, 57%, 66%)
CMYKcmyk(19%, 0%, 46%, 15%)
LABlab(81.8 -30.1 44.6)
LCHlch(81.8 53.8 124.0)
OKLCHoklch(0.833 0.136 127.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd975 on white: 1.61:1
AA ✗ fail · AA-large · AAA
Aa
#afd975 on black: 13.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green85.1%
Blue45.9%

CMYK percentages

Cyan19.4%
Magenta0.0%
Yellow46.1%
Key (black)14.9%

Color previews

#afd975 text on a black background

contrast 13.00:1

Card sample

#afd975 text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 217, 117, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 217, 117, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd975;
background: linear-gradient(135deg, #afd975, #75D97E);

Monochromatic scale

Palettes built from #afd975

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd975 in the Color Lab