Skip to content

#cdf102

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

RGB
205, 241, 2
HSL
69°, 98%, 48%
CMYK
15, 0, 99, 6
Luminance
0.7589

Every format

HEX#cdf102
RGBrgb(205, 241, 2)
HSLhsl(69, 98%, 48%)
CMYKcmyk(15%, 0%, 99%, 6%)
LABlab(89.8 -35.3 87.3)
LCHlch(89.8 94.2 112.0)
OKLCHoklch(0.900 0.214 120.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cdf102 on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#cdf102 on black: 16.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.4%
Green94.5%
Blue0.8%

CMYK percentages

Cyan14.9%
Magenta0.0%
Yellow99.2%
Key (black)5.5%

Color previews

#cdf102 text on a black background

contrast 16.18:1

Card sample

#cdf102 text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cdf102

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cdf102 in the Color Lab