#c0cf21
a balanced, vivid yellow · cool · closest name: yellow
RGB
192, 207, 33
HSL
65°, 73%, 47%
CMYK
7, 0, 84, 19
Luminance
0.5594
Every format
| HEX | #c0cf21 |
| RGB | rgb(192, 207, 33) |
| HSL | hsl(65, 73%, 47%) |
| CMYK | cmyk(7%, 0%, 84%, 19%) |
| LAB | lab(79.6 -24.2 74.9) |
| LCH | lch(79.6 78.7 107.9) |
| OKLCH | oklch(0.816 0.178 115.0) |
Copy-ready code
/* CSS */
color: #c0cf21;
background-color: #c0cf21;
/* Tailwind (arbitrary) */
class="text-[#c0cf21] bg-[#c0cf21]"
/* SCSS */
$brand: #c0cf21;
/* SwiftUI */
Color(red: 0.753, green: 0.812, blue: 0.129)
/* Android */
Color.parseColor("#c0cf21")Accessibility — WCAG contrast
Aa
#c0cf21 on white: 1.72:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c0cf21 on black: 12.19:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red75.3%
Green81.2%
Blue12.9%
CMYK percentages
Cyan7.2%
Magenta0.0%
Yellow84.1%
Key (black)18.8%
Color previews
#c0cf21 text on a black background
contrast 12.19:1
Card sample
#c0cf21 text on a white background
contrast 1.72:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c0cf21;
Background color
Panel with #c0cf21 background
background-color: #c0cf21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c0cf21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(192, 207, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(192, 207, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c0cf21; background: linear-gradient(135deg, #c0cf21, #4CCF21);