#ceaf21
a balanced, vivid yellow · cool · closest name: gold
RGB
206, 175, 33
HSL
49°, 72%, 47%
CMYK
0, 15, 84, 19
Luminance
0.4389
Every format
| HEX | #ceaf21 |
| RGB | rgb(206, 175, 33) |
| HSL | hsl(49, 72%, 47%) |
| CMYK | cmyk(0%, 15%, 84%, 19%) |
| LAB | lab(72.2 -2.0 69.1) |
| LCH | lch(72.2 69.2 91.7) |
| OKLCH | oklch(0.759 0.148 95.4) |
Copy-ready code
/* CSS */
color: #ceaf21;
background-color: #ceaf21;
/* Tailwind (arbitrary) */
class="text-[#ceaf21] bg-[#ceaf21]"
/* SCSS */
$brand: #ceaf21;
/* SwiftUI */
Color(red: 0.808, green: 0.686, blue: 0.129)
/* Android */
Color.parseColor("#ceaf21")Accessibility — WCAG contrast
Aa
#ceaf21 on white: 2.15:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ceaf21 on black: 9.78:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.8%
Green68.6%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta15.0%
Yellow84.0%
Key (black)19.2%
Color previews
#ceaf21 text on a black background
contrast 9.78:1
Card sample
#ceaf21 text on a white background
contrast 2.15:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ceaf21;
Background color
Panel with #ceaf21 background
background-color: #ceaf21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ceaf21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(206, 175, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 175, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ceaf21; background: linear-gradient(135deg, #ceaf21, #7ACE21);