#ccaf3f
a balanced, vivid yellow · cool · closest name: olive
RGB
204, 175, 63
HSL
48°, 58%, 52%
CMYK
0, 14, 69, 20
Luminance
0.4386
Every format
| HEX | #ccaf3f |
| RGB | rgb(204, 175, 63) |
| HSL | hsl(48, 58%, 52%) |
| CMYK | cmyk(0%, 14%, 69%, 20%) |
| LAB | lab(72.1 -1.7 58.8) |
| LCH | lch(72.1 58.8 91.6) |
| OKLCH | oklch(0.759 0.132 94.3) |
Copy-ready code
/* CSS */
color: #ccaf3f;
background-color: #ccaf3f;
/* Tailwind (arbitrary) */
class="text-[#ccaf3f] bg-[#ccaf3f]"
/* SCSS */
$brand: #ccaf3f;
/* SwiftUI */
Color(red: 0.800, green: 0.686, blue: 0.247)
/* Android */
Color.parseColor("#ccaf3f")Accessibility — WCAG contrast
Aa
#ccaf3f on white: 2.15:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ccaf3f on black: 9.77:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.0%
Green68.6%
Blue24.7%
CMYK percentages
Cyan0.0%
Magenta14.2%
Yellow69.1%
Key (black)20.0%
Color previews
#ccaf3f text on a black background
contrast 9.77:1
Card sample
#ccaf3f text on a white background
contrast 2.15:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ccaf3f;
Background color
Panel with #ccaf3f background
background-color: #ccaf3f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ccaf3f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(204, 175, 63, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(204, 175, 63, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ccaf3f; background: linear-gradient(135deg, #ccaf3f, #8BCC3F);