#cec021
a balanced, vivid yellow · cool · closest name: gold
RGB
206, 192, 33
HSL
55°, 72%, 47%
CMYK
0, 7, 84, 19
Luminance
0.5093
Every format
| HEX | #cec021 |
| RGB | rgb(206, 192, 33) |
| HSL | hsl(55, 72%, 47%) |
| CMYK | cmyk(0%, 7%, 84%, 19%) |
| LAB | lab(76.6 -10.8 72.8) |
| LCH | lch(76.6 73.7 98.4) |
| OKLCH | oklch(0.795 0.161 103.9) |
Copy-ready code
/* CSS */
color: #cec021;
background-color: #cec021;
/* Tailwind (arbitrary) */
class="text-[#cec021] bg-[#cec021]"
/* SCSS */
$brand: #cec021;
/* SwiftUI */
Color(red: 0.808, green: 0.753, blue: 0.129)
/* Android */
Color.parseColor("#cec021")Accessibility — WCAG contrast
Aa
#cec021 on white: 1.88:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cec021 on black: 11.19:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.8%
Green75.3%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta6.8%
Yellow84.0%
Key (black)19.2%
Color previews
#cec021 text on a black background
contrast 11.19:1
Card sample
#cec021 text on a white background
contrast 1.88:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cec021;
Background color
Panel with #cec021 background
background-color: #cec021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cec021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(206, 192, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 192, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cec021; background: linear-gradient(135deg, #cec021, #69CE21);