#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 |
| RGB | rgb(205, 241, 2) |
| HSL | hsl(69, 98%, 48%) |
| CMYK | cmyk(15%, 0%, 99%, 6%) |
| LAB | lab(89.8 -35.3 87.3) |
| LCH | lch(89.8 94.2 112.0) |
| OKLCH | oklch(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);