#cec721
a balanced, vivid yellow · cool · closest name: gold
RGB
206, 199, 33
HSL
58°, 72%, 47%
CMYK
0, 3, 84, 19
Luminance
0.5408
Every format
| HEX | #cec721 |
| RGB | rgb(206, 199, 33) |
| HSL | hsl(58, 72%, 47%) |
| CMYK | cmyk(0%, 3%, 84%, 19%) |
| LAB | lab(78.5 -14.4 74.4) |
| LCH | lch(78.5 75.8 100.9) |
| OKLCH | oklch(0.810 0.167 106.9) |
Copy-ready code
/* CSS */
color: #cec721;
background-color: #cec721;
/* Tailwind (arbitrary) */
class="text-[#cec721] bg-[#cec721]"
/* SCSS */
$brand: #cec721;
/* SwiftUI */
Color(red: 0.808, green: 0.780, blue: 0.129)
/* Android */
Color.parseColor("#cec721")Accessibility — WCAG contrast
Aa
#cec721 on white: 1.78:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cec721 on black: 11.82:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.8%
Green78.0%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta3.4%
Yellow84.0%
Key (black)19.2%
Color previews
#cec721 text on a black background
contrast 11.82:1
Card sample
#cec721 text on a white background
contrast 1.78:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cec721;
Background color
Panel with #cec721 background
background-color: #cec721;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cec721;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(206, 199, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 199, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cec721; background: linear-gradient(135deg, #cec721, #62CE21);