#ccc31c
a balanced, electric yellow · cool · closest name: gold
RGB
204, 195, 28
HSL
57°, 76%, 46%
CMYK
0, 4, 86, 20
Luminance
0.5195
Every format
| HEX | #ccc31c |
| RGB | rgb(204, 195, 28) |
| HSL | hsl(57, 76%, 46%) |
| CMYK | cmyk(0%, 4%, 86%, 20%) |
| LAB | lab(77.3 -13.3 74.4) |
| LCH | lch(77.3 75.6 100.2) |
| OKLCH | oklch(0.799 0.165 106.1) |
Copy-ready code
/* CSS */
color: #ccc31c;
background-color: #ccc31c;
/* Tailwind (arbitrary) */
class="text-[#ccc31c] bg-[#ccc31c]"
/* SCSS */
$brand: #ccc31c;
/* SwiftUI */
Color(red: 0.800, green: 0.765, blue: 0.110)
/* Android */
Color.parseColor("#ccc31c")Accessibility — WCAG contrast
Aa
#ccc31c on white: 1.84:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccc31c on black: 11.39:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green76.5%
Blue11.0%
CMYK percentages
Cyan0.0%
Magenta4.4%
Yellow86.3%
Key (black)20.0%
Color previews
#ccc31c text on a black background
contrast 11.39:1
Card sample
#ccc31c text on a white background
contrast 1.84:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccc31c;
Background color
Panel with #ccc31c background
background-color: #ccc31c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccc31c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 195, 28, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 195, 28, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccc31c; background: linear-gradient(135deg, #ccc31c, #60CC1C);