#c7af1f
a balanced, vivid yellow · cool · closest name: gold
RGB
199, 175, 31
HSL
51°, 73%, 45%
CMYK
0, 12, 84, 22
Luminance
0.4290
Every format
| HEX | #c7af1f |
| RGB | rgb(199, 175, 31) |
| HSL | hsl(51, 73%, 45%) |
| CMYK | cmyk(0%, 12%, 84%, 22%) |
| LAB | lab(71.5 -5.1 68.8) |
| LCH | lch(71.5 69.0 94.3) |
| OKLCH | oklch(0.752 0.149 98.7) |
Copy-ready code
/* CSS */
color: #c7af1f;
background-color: #c7af1f;
/* Tailwind (arbitrary) */
class="text-[#c7af1f] bg-[#c7af1f]"
/* SCSS */
$brand: #c7af1f;
/* SwiftUI */
Color(red: 0.780, green: 0.686, blue: 0.122)
/* Android */
Color.parseColor("#c7af1f")Accessibility — WCAG contrast
Aa
#c7af1f on white: 2.19:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#c7af1f on black: 9.58:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red78.0%
Green68.6%
Blue12.2%
CMYK percentages
Cyan0.0%
Magenta12.1%
Yellow84.4%
Key (black)22.0%
Color previews
#c7af1f text on a black background
contrast 9.58:1
Card sample
#c7af1f text on a white background
contrast 2.19:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #c7af1f;
Background color
Panel with #c7af1f background
background-color: #c7af1f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #c7af1f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(199, 175, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(199, 175, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c7af1f; background: linear-gradient(135deg, #c7af1f, #6FC71F);