Skip to content

#cdf998

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

RGB
205, 249, 152
HSL
87°, 89%, 79%
CMYK
18, 0, 39, 2
Luminance
0.8300

Every format

HEX#cdf998
RGBrgb(205, 249, 152)
HSLhsl(87, 89%, 79%)
CMYKcmyk(18%, 0%, 39%, 2%)
LABlab(93.0 -30.0 42.0)
LCHlch(93.0 51.6 125.5)
OKLCHoklch(0.929 0.132 128.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#cdf998 text on a black background

contrast 17.60:1

Card sample

#cdf998 text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdf998

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdf998 in the Color Lab