#cdf012
a balanced, electric yellow · cool · closest name: yellow
RGB
205, 240, 18
HSL
70°, 88%, 51%
CMYK
15, 0, 93, 6
Luminance
0.7534
Every format
| HEX | #cdf012 |
| RGB | rgb(205, 240, 18) |
| HSL | hsl(70, 88%, 51%) |
| CMYK | cmyk(15%, 0%, 93%, 6%) |
| LAB | lab(89.5 -34.7 85.7) |
| LCH | lch(89.5 92.5 112.0) |
| OKLCH | oklch(0.898 0.210 119.9) |
Copy-ready code
/* CSS */
color: #cdf012;
background-color: #cdf012;
/* Tailwind (arbitrary) */
class="text-[#cdf012] bg-[#cdf012]"
/* SCSS */
$brand: #cdf012;
/* SwiftUI */
Color(red: 0.804, green: 0.941, blue: 0.071)
/* Android */
Color.parseColor("#cdf012")Accessibility — WCAG contrast
Aa
#cdf012 on white: 1.31:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cdf012 on black: 16.07:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.4%
Green94.1%
Blue7.1%
CMYK percentages
Cyan14.6%
Magenta0.0%
Yellow92.5%
Key (black)5.9%
Color previews
#cdf012 text on a black background
contrast 16.07:1
Card sample
#cdf012 text on a white background
contrast 1.31:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cdf012;
Background color
Panel with #cdf012 background
background-color: #cdf012;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cdf012;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(205, 240, 18, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 240, 18, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdf012; background: linear-gradient(135deg, #cdf012, #39F012);