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