Skip to content

#cdf2a2

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

RGB
205, 242, 162
HSL
88°, 76%, 79%
CMYK
15, 0, 33, 5
Luminance
0.7909

Every format

HEX#cdf2a2
RGBrgb(205, 242, 162)
HSLhsl(88, 76%, 79%)
CMYKcmyk(15%, 0%, 33%, 5%)
LABlab(91.3 -25.4 34.8)
LCHlch(91.3 43.1 126.2)
OKLCHoklch(0.916 0.111 128.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdf2a2 on white: 1.25:1
AA ✗ fail · AA-large · AAA
Aa
#cdf2a2 on black: 16.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan15.3%
Magenta0.0%
Yellow33.1%
Key (black)5.1%

Color previews

#cdf2a2 text on a black background

contrast 16.82:1

Card sample

#cdf2a2 text on a white background

contrast 1.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdf2a2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdf2a2 in the Color Lab