#cbba21
a balanced, vivid yellow · cool · closest name: gold
RGB
203, 186, 33
HSL
54°, 72%, 46%
CMYK
0, 8, 84, 20
Luminance
0.4792
Every format
| HEX | #cbba21 |
| RGB | rgb(203, 186, 33) |
| HSL | hsl(54, 72%, 46%) |
| CMYK | cmyk(0%, 8%, 84%, 20%) |
| LAB | lab(74.8 -9.1 71.2) |
| LCH | lch(74.8 71.8 97.2) |
| OKLCH | oklch(0.779 0.156 102.4) |
Copy-ready code
/* CSS */
color: #cbba21;
background-color: #cbba21;
/* Tailwind (arbitrary) */
class="text-[#cbba21] bg-[#cbba21]"
/* SCSS */
$brand: #cbba21;
/* SwiftUI */
Color(red: 0.796, green: 0.729, blue: 0.129)
/* Android */
Color.parseColor("#cbba21")Accessibility — WCAG contrast
Aa
#cbba21 on white: 1.98:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cbba21 on black: 10.58:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red79.6%
Green72.9%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta8.4%
Yellow83.7%
Key (black)20.4%
Color previews
#cbba21 text on a black background
contrast 10.58:1
Card sample
#cbba21 text on a white background
contrast 1.98:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cbba21;
Background color
Panel with #cbba21 background
background-color: #cbba21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cbba21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(203, 186, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(203, 186, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cbba21; background: linear-gradient(135deg, #cbba21, #6BCB21);