#ccdf21
a balanced, vivid yellow · cool · closest name: yellow
RGB
204, 223, 33
HSL
66°, 75%, 50%
CMYK
9, 0, 85, 13
Luminance
0.6572
Every format
| HEX | #ccdf21 |
| RGB | rgb(204, 223, 33) |
| HSL | hsl(66, 75%, 50%) |
| CMYK | cmyk(9%, 0%, 85%, 13%) |
| LAB | lab(84.9 -26.9 79.6) |
| LCH | lch(84.9 84.0 108.7) |
| OKLCH | oklch(0.860 0.190 115.9) |
Copy-ready code
/* CSS */
color: #ccdf21;
background-color: #ccdf21;
/* Tailwind (arbitrary) */
class="text-[#ccdf21] bg-[#ccdf21]"
/* SCSS */
$brand: #ccdf21;
/* SwiftUI */
Color(red: 0.800, green: 0.875, blue: 0.129)
/* Android */
Color.parseColor("#ccdf21")Accessibility — WCAG contrast
Aa
#ccdf21 on white: 1.48:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccdf21 on black: 14.14:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green87.5%
Blue12.9%
CMYK percentages
Cyan8.5%
Magenta0.0%
Yellow85.2%
Key (black)12.5%
Color previews
#ccdf21 text on a black background
contrast 14.14:1
Card sample
#ccdf21 text on a white background
contrast 1.48:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccdf21;
Background color
Panel with #ccdf21 background
background-color: #ccdf21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccdf21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 223, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 223, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccdf21; background: linear-gradient(135deg, #ccdf21, #4DDF21);