#ceab21
a balanced, vivid yellow · cool · closest name: gold
RGB
206, 171, 33
HSL
48°, 72%, 47%
CMYK
0, 17, 84, 19
Luminance
0.4236
Every format
| HEX | #ceab21 |
| RGB | rgb(206, 171, 33) |
| HSL | hsl(48, 72%, 47%) |
| CMYK | cmyk(0%, 17%, 84%, 19%) |
| LAB | lab(71.1 0.1 68.3) |
| LCH | lch(71.1 68.3 89.9) |
| OKLCH | oklch(0.751 0.146 93.1) |
Copy-ready code
/* CSS */
color: #ceab21;
background-color: #ceab21;
/* Tailwind (arbitrary) */
class="text-[#ceab21] bg-[#ceab21]"
/* SCSS */
$brand: #ceab21;
/* SwiftUI */
Color(red: 0.808, green: 0.671, blue: 0.129)
/* Android */
Color.parseColor("#ceab21")Accessibility — WCAG contrast
Aa
#ceab21 on white: 2.22:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ceab21 on black: 9.47:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.8%
Green67.1%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta17.0%
Yellow84.0%
Key (black)19.2%
Color previews
#ceab21 text on a black background
contrast 9.47:1
Card sample
#ceab21 text on a white background
contrast 2.22:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ceab21;
Background color
Panel with #ceab21 background
background-color: #ceab21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ceab21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(206, 171, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 171, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ceab21; background: linear-gradient(135deg, #ceab21, #7ECE21);