#c5c511
a dark, electric yellow · cool · closest name: gold
RGB
197, 197, 17
HSL
60°, 84%, 42%
CMYK
0, 0, 91, 23
Luminance
0.5184
Every format
| HEX | #c5c511 |
| RGB | rgb(197, 197, 17) |
| HSL | hsl(60, 84%, 42%) |
| CMYK | cmyk(0%, 0%, 91%, 23%) |
| LAB | lab(77.2 -17.6 76.0) |
| LCH | lch(77.2 78.0 103.0) |
| OKLCH | oklch(0.797 0.171 109.7) |
Copy-ready code
/* CSS */
color: #c5c511;
background-color: #c5c511;
/* Tailwind (arbitrary) */
class="text-[#c5c511] bg-[#c5c511]"
/* SCSS */
$brand: #c5c511;
/* SwiftUI */
Color(red: 0.773, green: 0.773, blue: 0.067)
/* Android */
Color.parseColor("#c5c511")Accessibility — WCAG contrast
Aa
#c5c511 on white: 1.85:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c5c511 on black: 11.37:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red77.3%
Green77.3%
Blue6.7%
CMYK percentages
Cyan0.0%
Magenta0.0%
Yellow91.4%
Key (black)22.7%
Color previews
#c5c511 text on a black background
contrast 11.37:1
Card sample
#c5c511 text on a white background
contrast 1.85:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c5c511;
Background color
Panel with #c5c511 background
background-color: #c5c511;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c5c511;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(197, 197, 17, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(197, 197, 17, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c5c511; background: linear-gradient(135deg, #c5c511, #4DC511);