#ba9e21
a dark, vivid yellow · cool · closest name: olive
RGB
186, 158, 33
HSL
49°, 70%, 43%
CMYK
0, 15, 82, 27
Luminance
0.3500
Every format
| HEX | #ba9e21 |
| RGB | rgb(186, 158, 33) |
| HSL | hsl(49, 70%, 43%) |
| CMYK | cmyk(0%, 15%, 82%, 27%) |
| LAB | lab(65.8 -1.8 62.9) |
| LCH | lch(65.8 62.9 91.7) |
| OKLCH | oklch(0.704 0.136 95.3) |
Copy-ready code
/* CSS */
color: #ba9e21;
background-color: #ba9e21;
/* Tailwind (arbitrary) */
class="text-[#ba9e21] bg-[#ba9e21]"
/* SCSS */
$brand: #ba9e21;
/* SwiftUI */
Color(red: 0.729, green: 0.620, blue: 0.129)
/* Android */
Color.parseColor("#ba9e21")Accessibility — WCAG contrast
Aa
#ba9e21 on white: 2.62:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ba9e21 on black: 8.00:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green62.0%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta15.1%
Yellow82.3%
Key (black)27.1%
Color previews
#ba9e21 text on a black background
contrast 8.00:1
Card sample
#ba9e21 text on a white background
contrast 2.62:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba9e21;
Background color
Panel with #ba9e21 background
background-color: #ba9e21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba9e21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 158, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 158, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba9e21; background: linear-gradient(135deg, #ba9e21, #70BA21);