Skip to content

#ccef21

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

RGB
204, 239, 33
HSL
70°, 87%, 53%
CMYK
15, 0, 86, 6
Luminance
0.7468

Every format

HEX#ccef21
RGBrgb(204, 239, 33)
HSLhsl(70, 87%, 53%)
CMYKcmyk(15%, 0%, 86%, 6%)
LABlab(89.2 -34.4 83.2)
LCHlch(89.2 90.0 112.4)
OKLCHoklch(0.896 0.206 120.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ccef21 on white: 1.32:1
AA ✗ fail · AA-large · AAA
Aa
#ccef21 on black: 15.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.0%
Green93.7%
Blue12.9%

CMYK percentages

Cyan14.6%
Magenta0.0%
Yellow86.2%
Key (black)6.3%

Color previews

#ccef21 text on a black background

contrast 15.94:1

Card sample

#ccef21 text on a white background

contrast 1.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(204, 239, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 239, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccef21;
background: linear-gradient(135deg, #ccef21, #42EF21);

Monochromatic scale

Palettes built from #ccef21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ccef21 in the Color Lab