Skip to content

#cdf0a2

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

RGB
205, 240, 162
HSL
87°, 72%, 79%
CMYK
15, 0, 33, 6
Luminance
0.7791

Every format

HEX#cdf0a2
RGBrgb(205, 240, 162)
HSLhsl(87, 72%, 79%)
CMYKcmyk(15%, 0%, 33%, 6%)
LABlab(90.7 -24.4 34.1)
LCHlch(90.7 41.9 125.7)
OKLCHoklch(0.911 0.108 128.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdf0a2 on white: 1.27:1
AA ✗ fail · AA-large · AAA
Aa
#cdf0a2 on black: 16.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan14.6%
Magenta0.0%
Yellow32.5%
Key (black)5.9%

Color previews

#cdf0a2 text on a black background

contrast 16.58:1

Card sample

#cdf0a2 text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdf0a2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdf0a2 in the Color Lab