Skip to content

#d1df97

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

RGB
209, 223, 151
HSL
72°, 53%, 73%
CMYK
6, 0, 32, 13
Luminance
0.6857

Every format

HEX#d1df97
RGBrgb(209, 223, 151)
HSLhsl(72, 53%, 73%)
CMYKcmyk(6%, 0%, 32%, 13%)
LABlab(86.3 -16.1 33.8)
LCHlch(86.3 37.5 115.5)
OKLCHoklch(0.876 0.095 117.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d1df97 on white: 1.43:1
AA ✗ fail · AA-large · AAA
Aa
#d1df97 on black: 14.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.0%
Green87.5%
Blue59.2%

CMYK percentages

Cyan6.3%
Magenta0.0%
Yellow32.3%
Key (black)12.5%

Color previews

#d1df97 text on a black background

contrast 14.71:1

Card sample

#d1df97 text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d1df97

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d1df97 in the Color Lab