Skip to content

#d1ffaf

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

RGB
209, 255, 175
HSL
95°, 100%, 84%
CMYK
18, 0, 31, 0
Luminance
0.8817

Every format

HEX#d1ffaf
RGBrgb(209, 255, 175)
HSLhsl(95, 100%, 84%)
CMYKcmyk(18%, 0%, 31%, 0%)
LABlab(95.2 -28.4 33.6)
LCHlch(95.2 44.0 130.2)
OKLCHoklch(0.949 0.114 132.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d1ffaf on white: 1.13:1
AA ✗ fail · AA-large · AAA
Aa
#d1ffaf on black: 18.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.0%
Green100.0%
Blue68.6%

CMYK percentages

Cyan18.0%
Magenta0.0%
Yellow31.4%
Key (black)0.0%

Color previews

#d1ffaf text on a black background

contrast 18.63:1

Card sample

#d1ffaf text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d1ffaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d1ffaf in the Color Lab