Skip to content

#d4f0af

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

RGB
212, 240, 175
HSL
86°, 68%, 81%
CMYK
12, 0, 27, 6
Luminance
0.7941

Every format

HEX#d4f0af
RGBrgb(212, 240, 175)
HSLhsl(86, 68%, 81%)
CMYKcmyk(12%, 0%, 27%, 6%)
LABlab(91.4 -20.1 28.5)
LCHlch(91.4 34.9 125.3)
OKLCHoklch(0.919 0.090 127.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d4f0af on white: 1.24:1
AA ✗ fail · AA-large · AAA
Aa
#d4f0af on black: 16.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green94.1%
Blue68.6%

CMYK percentages

Cyan11.7%
Magenta0.0%
Yellow27.1%
Key (black)5.9%

Color previews

#d4f0af text on a black background

contrast 16.88:1

Card sample

#d4f0af text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d4f0af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4f0af in the Color Lab