Skip to content

#cdf21d

a balanced, electric green · cool · closest name: yellow

RGB
205, 242, 29
HSL
70°, 89%, 53%
CMYK
15, 0, 88, 5
Luminance
0.7657

Every format

HEX#cdf21d
RGBrgb(205, 242, 29)
HSLhsl(70, 89%, 53%)
CMYKcmyk(15%, 0%, 88%, 5%)
LABlab(90.1 -35.4 84.7)
LCHlch(90.1 91.8 112.7)
OKLCHoklch(0.903 0.210 120.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdf21d on white: 1.29:1
AA ✗ fail · AA-large · AAA
Aa
#cdf21d on black: 16.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green94.9%
Blue11.4%

CMYK percentages

Cyan15.3%
Magenta0.0%
Yellow88.0%
Key (black)5.1%

Color previews

#cdf21d text on a black background

contrast 16.31:1

Card sample

#cdf21d text on a white background

contrast 1.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdf21d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdf21d in the Color Lab