Skip to content

#cdf1a2

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

RGB
205, 241, 162
HSL
87°, 74%, 79%
CMYK
15, 0, 33, 6
Luminance
0.7850

Every format

HEX#cdf1a2
RGBrgb(205, 241, 162)
HSLhsl(87, 74%, 79%)
CMYKcmyk(15%, 0%, 33%, 6%)
LABlab(91.0 -24.9 34.4)
LCHlch(91.0 42.5 125.9)
OKLCHoklch(0.914 0.109 128.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdf1a2 on white: 1.26:1
AA ✗ fail · AA-large · AAA
Aa
#cdf1a2 on black: 16.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green94.5%
Blue63.5%

CMYK percentages

Cyan14.9%
Magenta0.0%
Yellow32.8%
Key (black)5.5%

Color previews

#cdf1a2 text on a black background

contrast 16.70:1

Card sample

#cdf1a2 text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 241, 162, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 241, 162, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdf1a2;
background: linear-gradient(135deg, #cdf1a2, #A2F1AC);

Monochromatic scale

Palettes built from #cdf1a2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdf1a2 in the Color Lab