#bacb21
a balanced, vivid yellow · cool · closest name: gold
RGB
186, 203, 33
HSL
66°, 72%, 46%
CMYK
8, 0, 84, 20
Luminance
0.5326
Every format
| HEX | #bacb21 |
| RGB | rgb(186, 203, 33) |
| HSL | hsl(66, 72%, 46%) |
| CMYK | cmyk(8%, 0%, 84%, 20%) |
| LAB | lab(78.0 -24.8 73.4) |
| LCH | lch(78.0 77.5 108.7) |
| OKLCH | oklch(0.802 0.176 115.8) |
Copy-ready code
/* CSS */
color: #bacb21;
background-color: #bacb21;
/* Tailwind (arbitrary) */
class="text-[#bacb21] bg-[#bacb21]"
/* SCSS */
$brand: #bacb21;
/* SwiftUI */
Color(red: 0.729, green: 0.796, blue: 0.129)
/* Android */
Color.parseColor("#bacb21")Accessibility — WCAG contrast
Aa
#bacb21 on white: 1.80:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#bacb21 on black: 11.65:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green79.6%
Blue12.9%
CMYK percentages
Cyan8.4%
Magenta0.0%
Yellow83.7%
Key (black)20.4%
Color previews
#bacb21 text on a black background
contrast 11.65:1
Card sample
#bacb21 text on a white background
contrast 1.80:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #bacb21;
Background color
Panel with #bacb21 background
background-color: #bacb21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #bacb21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 203, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 203, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bacb21; background: linear-gradient(135deg, #bacb21, #49CB21);