#cecf21
a balanced, vivid yellow · cool · closest name: gold
RGB
206, 207, 33
HSL
60°, 73%, 47%
CMYK
1, 0, 84, 19
Luminance
0.5786
Every format
| HEX | #cecf21 |
| RGB | rgb(206, 207, 33) |
| HSL | hsl(60, 73%, 47%) |
| CMYK | cmyk(1%, 0%, 84%, 19%) |
| LAB | lab(80.7 -18.4 76.2) |
| LCH | lch(80.7 78.4 103.5) |
| OKLCH | oklch(0.827 0.174 110.0) |
Copy-ready code
/* CSS */
color: #cecf21;
background-color: #cecf21;
/* Tailwind (arbitrary) */
class="text-[#cecf21] bg-[#cecf21]"
/* SCSS */
$brand: #cecf21;
/* SwiftUI */
Color(red: 0.808, green: 0.812, blue: 0.129)
/* Android */
Color.parseColor("#cecf21")Accessibility — WCAG contrast
Aa
#cecf21 on white: 1.67:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cecf21 on black: 12.57:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.8%
Green81.2%
Blue12.9%
CMYK percentages
Cyan0.5%
Magenta0.0%
Yellow84.1%
Key (black)18.8%
Color previews
#cecf21 text on a black background
contrast 12.57:1
Card sample
#cecf21 text on a white background
contrast 1.67:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cecf21;
Background color
Panel with #cecf21 background
background-color: #cecf21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cecf21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(206, 207, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 207, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cecf21; background: linear-gradient(135deg, #cecf21, #5ACF21);