#c7da21
a balanced, vivid yellow · cool · closest name: yellow
RGB
199, 218, 33
HSL
66°, 74%, 49%
CMYK
9, 0, 85, 15
Luminance
0.6239
Every format
| HEX | #c7da21 |
| RGB | rgb(199, 218, 33) |
| HSL | hsl(66, 74%, 49%) |
| CMYK | cmyk(9%, 0%, 85%, 15%) |
| LAB | lab(83.1 -26.6 78.0) |
| LCH | lch(83.1 82.4 108.8) |
| OKLCH | oklch(0.845 0.187 116.1) |
Copy-ready code
/* CSS */
color: #c7da21;
background-color: #c7da21;
/* Tailwind (arbitrary) */
class="text-[#c7da21] bg-[#c7da21]"
/* SCSS */
$brand: #c7da21;
/* SwiftUI */
Color(red: 0.780, green: 0.855, blue: 0.129)
/* Android */
Color.parseColor("#c7da21")Accessibility — WCAG contrast
Aa
#c7da21 on white: 1.56:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c7da21 on black: 13.48:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red78.0%
Green85.5%
Blue12.9%
CMYK percentages
Cyan8.7%
Magenta0.0%
Yellow84.9%
Key (black)14.5%
Color previews
#c7da21 text on a black background
contrast 13.48:1
Card sample
#c7da21 text on a white background
contrast 1.56:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c7da21;
Background color
Panel with #c7da21 background
background-color: #c7da21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c7da21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(199, 218, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 218, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c7da21; background: linear-gradient(135deg, #c7da21, #4CDA21);