#cdf302
a balanced, electric yellow · cool · closest name: yellow
RGB
205, 243, 2
HSL
70°, 98%, 48%
CMYK
16, 0, 99, 5
Luminance
0.7708
Every format
| HEX | #cdf302 |
| RGB | rgb(205, 243, 2) |
| HSL | hsl(70, 98%, 48%) |
| CMYK | cmyk(16%, 0%, 99%, 5%) |
| LAB | lab(90.4 -36.2 87.7) |
| LCH | lch(90.4 94.9 112.4) |
| OKLCH | oklch(0.905 0.216 120.5) |
Copy-ready code
/* CSS */
color: #cdf302;
background-color: #cdf302;
/* Tailwind (arbitrary) */
class="text-[#cdf302] bg-[#cdf302]"
/* SCSS */
$brand: #cdf302;
/* SwiftUI */
Color(red: 0.804, green: 0.953, blue: 0.008)
/* Android */
Color.parseColor("#cdf302")Accessibility — WCAG contrast
Aa
#cdf302 on white: 1.28:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cdf302 on black: 16.42:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.4%
Green95.3%
Blue0.8%
CMYK percentages
Cyan15.6%
Magenta0.0%
Yellow99.2%
Key (black)4.7%
Color previews
#cdf302 text on a black background
contrast 16.42:1
Card sample
#cdf302 text on a white background
contrast 1.28:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cdf302;
Background color
Panel with #cdf302 background
background-color: #cdf302;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cdf302;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(205, 243, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 243, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdf302; background: linear-gradient(135deg, #cdf302, #2CF302);