#bac921
a balanced, vivid yellow · cool · closest name: gold
RGB
186, 201, 33
HSL
65°, 72%, 46%
CMYK
8, 0, 84, 21
Luminance
0.5232
Every format
| HEX | #bac921 |
| RGB | rgb(186, 201, 33) |
| HSL | hsl(65, 72%, 46%) |
| CMYK | cmyk(8%, 0%, 84%, 21%) |
| LAB | lab(77.5 -23.9 72.9) |
| LCH | lch(77.5 76.7 108.1) |
| OKLCH | oklch(0.798 0.174 115.2) |
Copy-ready code
/* CSS */
color: #bac921;
background-color: #bac921;
/* Tailwind (arbitrary) */
class="text-[#bac921] bg-[#bac921]"
/* SCSS */
$brand: #bac921;
/* SwiftUI */
Color(red: 0.729, green: 0.788, blue: 0.129)
/* Android */
Color.parseColor("#bac921")Accessibility — WCAG contrast
Aa
#bac921 on white: 1.83:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#bac921 on black: 11.46:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green78.8%
Blue12.9%
CMYK percentages
Cyan7.5%
Magenta0.0%
Yellow83.6%
Key (black)21.2%
Color previews
#bac921 text on a black background
contrast 11.46:1
Card sample
#bac921 text on a white background
contrast 1.83:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #bac921;
Background color
Panel with #bac921 background
background-color: #bac921;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #bac921;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 201, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 201, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bac921; background: linear-gradient(135deg, #bac921, #4AC921);