#c7c01f
a balanced, vivid yellow · cool · closest name: gold
RGB
199, 192, 31
HSL
58°, 73%, 45%
CMYK
0, 4, 84, 22
Luminance
0.4994
Every format
| HEX | #c7c01f |
| RGB | rgb(199, 192, 31) |
| HSL | hsl(58, 73%, 45%) |
| CMYK | cmyk(0%, 4%, 84%, 22%) |
| LAB | lab(76.0 -13.9 72.6) |
| LCH | lch(76.0 73.9 100.8) |
| OKLCH | oklch(0.789 0.162 106.8) |
Copy-ready code
/* CSS */
color: #c7c01f;
background-color: #c7c01f;
/* Tailwind (arbitrary) */
class="text-[#c7c01f] bg-[#c7c01f]"
/* SCSS */
$brand: #c7c01f;
/* SwiftUI */
Color(red: 0.780, green: 0.753, blue: 0.122)
/* Android */
Color.parseColor("#c7c01f")Accessibility — WCAG contrast
Aa
#c7c01f on white: 1.91:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c7c01f on black: 10.99:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red78.0%
Green75.3%
Blue12.2%
CMYK percentages
Cyan0.0%
Magenta3.5%
Yellow84.4%
Key (black)22.0%
Color previews
#c7c01f text on a black background
contrast 10.99:1
Card sample
#c7c01f text on a white background
contrast 1.91:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c7c01f;
Background color
Panel with #c7c01f background
background-color: #c7c01f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c7c01f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(199, 192, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 192, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c7c01f; background: linear-gradient(135deg, #c7c01f, #5EC71F);