#cfda21
a balanced, vivid yellow · cool · closest name: yellow
RGB
207, 218, 33
HSL
64°, 74%, 49%
CMYK
5, 0, 85, 15
Luminance
0.6352
Every format
| HEX | #cfda21 |
| RGB | rgb(207, 218, 33) |
| HSL | hsl(64, 74%, 49%) |
| CMYK | cmyk(5%, 0%, 85%, 15%) |
| LAB | lab(83.7 -23.3 78.8) |
| LCH | lch(83.7 82.1 106.5) |
| OKLCH | oklch(0.852 0.184 113.4) |
Copy-ready code
/* CSS */
color: #cfda21;
background-color: #cfda21;
/* Tailwind (arbitrary) */
class="text-[#cfda21] bg-[#cfda21]"
/* SCSS */
$brand: #cfda21;
/* SwiftUI */
Color(red: 0.812, green: 0.855, blue: 0.129)
/* Android */
Color.parseColor("#cfda21")Accessibility — WCAG contrast
Aa
#cfda21 on white: 1.53:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cfda21 on black: 13.70:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red81.2%
Green85.5%
Blue12.9%
CMYK percentages
Cyan5.0%
Magenta0.0%
Yellow84.9%
Key (black)14.5%
Color previews
#cfda21 text on a black background
contrast 13.70:1
Card sample
#cfda21 text on a white background
contrast 1.53:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cfda21;
Background color
Panel with #cfda21 background
background-color: #cfda21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cfda21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(207, 218, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 218, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfda21; background: linear-gradient(135deg, #cfda21, #54DA21);