Skip to content

#afe98c

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

RGB
175, 233, 140
HSL
97°, 68%, 73%
CMYK
25, 0, 40, 9
Luminance
0.6929

Every format

HEX#afe98c
RGBrgb(175, 233, 140)
HSLhsl(97, 68%, 73%)
CMYKcmyk(25%, 0%, 40%, 9%)
LABlab(86.6 -34.7 39.4)
LCHlch(86.6 52.5 131.4)
OKLCHoklch(0.873 0.136 134.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afe98c on white: 1.41:1
AA ✗ fail · AA-large · AAA
Aa
#afe98c on black: 14.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green91.4%
Blue54.9%

CMYK percentages

Cyan24.9%
Magenta0.0%
Yellow39.9%
Key (black)8.6%

Color previews

#afe98c text on a black background

contrast 14.86:1

Card sample

#afe98c text on a white background

contrast 1.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 233, 140, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 233, 140, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afe98c;
background: linear-gradient(135deg, #afe98c, #8CE9A7);

Monochromatic scale

Palettes built from #afe98c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afe98c in the Color Lab