#cec608
a dark, electric yellow · cool · closest name: gold
RGB
206, 198, 8
HSL
58°, 93%, 42%
CMYK
0, 4, 96, 19
Luminance
0.5353
Every format
| HEX | #cec608 |
| RGB | rgb(206, 198, 8) |
| HSL | hsl(58, 93%, 42%) |
| CMYK | cmyk(0%, 4%, 96%, 19%) |
| LAB | lab(78.2 -14.3 78.1) |
| LCH | lch(78.2 79.4 100.4) |
| OKLCH | oklch(0.807 0.172 106.7) |
Copy-ready code
/* CSS */
color: #cec608;
background-color: #cec608;
/* Tailwind (arbitrary) */
class="text-[#cec608] bg-[#cec608]"
/* SCSS */
$brand: #cec608;
/* SwiftUI */
Color(red: 0.808, green: 0.776, blue: 0.031)
/* Android */
Color.parseColor("#cec608")Accessibility — WCAG contrast
Aa
#cec608 on white: 1.79:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cec608 on black: 11.71:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.8%
Green77.6%
Blue3.1%
CMYK percentages
Cyan0.0%
Magenta3.9%
Yellow96.1%
Key (black)19.2%
Color previews
#cec608 text on a black background
contrast 11.71:1
Card sample
#cec608 text on a white background
contrast 1.79:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cec608;
Background color
Panel with #cec608 background
background-color: #cec608;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cec608;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(206, 198, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 198, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cec608; background: linear-gradient(135deg, #cec608, #52CE08);