#cbaf21
a balanced, vivid yellow · cool · closest name: gold
RGB
203, 175, 33
HSL
50°, 72%, 46%
CMYK
0, 14, 84, 20
Luminance
0.4347
Every format
| HEX | #cbaf21 |
| RGB | rgb(203, 175, 33) |
| HSL | hsl(50, 72%, 46%) |
| CMYK | cmyk(0%, 14%, 84%, 20%) |
| LAB | lab(71.9 -3.3 68.8) |
| LCH | lch(71.9 68.8 92.8) |
| OKLCH | oklch(0.756 0.148 96.8) |
Copy-ready code
/* CSS */
color: #cbaf21;
background-color: #cbaf21;
/* Tailwind (arbitrary) */
class="text-[#cbaf21] bg-[#cbaf21]"
/* SCSS */
$brand: #cbaf21;
/* SwiftUI */
Color(red: 0.796, green: 0.686, blue: 0.129)
/* Android */
Color.parseColor("#cbaf21")Accessibility — WCAG contrast
Aa
#cbaf21 on white: 2.17:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cbaf21 on black: 9.69:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red79.6%
Green68.6%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta13.8%
Yellow83.7%
Key (black)20.4%
Color previews
#cbaf21 text on a black background
contrast 9.69:1
Card sample
#cbaf21 text on a white background
contrast 2.17:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cbaf21;
Background color
Panel with #cbaf21 background
background-color: #cbaf21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cbaf21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(203, 175, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(203, 175, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cbaf21; background: linear-gradient(135deg, #cbaf21, #76CB21);