Skip to content

#cdf20c

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

RGB
205, 242, 12
HSL
70°, 91%, 50%
CMYK
15, 0, 95, 5
Luminance
0.7651

Every format

HEX#cdf20c
RGBrgb(205, 242, 12)
HSLhsl(70, 91%, 50%)
CMYKcmyk(15%, 0%, 95%, 5%)
LABlab(90.1 -35.7 86.7)
LCHlch(90.1 93.8 112.4)
OKLCHoklch(0.902 0.213 120.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red80.4%
Green94.9%
Blue4.7%

CMYK percentages

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

Color previews

#cdf20c text on a black background

contrast 16.30:1

Card sample

#cdf20c text on a white background

contrast 1.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdf20c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdf20c in the Color Lab