Skip to content

#cdf997

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

RGB
205, 249, 151
HSL
87°, 89%, 78%
CMYK
18, 0, 39, 2
Luminance
0.8296

Every format

HEX#cdf997
RGBrgb(205, 249, 151)
HSLhsl(87, 89%, 78%)
CMYKcmyk(18%, 0%, 39%, 2%)
LABlab(93.0 -30.1 42.5)
LCHlch(93.0 52.1 125.3)
OKLCHoklch(0.929 0.133 128.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdf997 on white: 1.19:1
AA ✗ fail · AA-large · AAA
Aa
#cdf997 on black: 17.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green97.6%
Blue59.2%

CMYK percentages

Cyan17.7%
Magenta0.0%
Yellow39.4%
Key (black)2.4%

Color previews

#cdf997 text on a black background

contrast 17.59:1

Card sample

#cdf997 text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(205, 249, 151, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 249, 151, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdf997;
background: linear-gradient(135deg, #cdf997, #97F9A2);

Monochromatic scale

Palettes built from #cdf997

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdf997 in the Color Lab