#baba0f
a dark, electric yellow · cool · closest name: gold
RGB
186, 186, 15
HSL
60°, 85%, 39%
CMYK
0, 0, 92, 27
Luminance
0.4559
Every format
| HEX | #baba0f |
| RGB | rgb(186, 186, 15) |
| HSL | hsl(60, 85%, 39%) |
| CMYK | cmyk(0%, 0%, 92%, 27%) |
| LAB | lab(73.3 -16.8 72.8) |
| LCH | lch(73.3 74.8 103.0) |
| OKLCH | oklch(0.764 0.164 109.7) |
Copy-ready code
/* CSS */
color: #baba0f;
background-color: #baba0f;
/* Tailwind (arbitrary) */
class="text-[#baba0f] bg-[#baba0f]"
/* SCSS */
$brand: #baba0f;
/* SwiftUI */
Color(red: 0.729, green: 0.729, blue: 0.059)
/* Android */
Color.parseColor("#baba0f")Accessibility — WCAG contrast
Aa
#baba0f on white: 2.08:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#baba0f on black: 10.12:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green72.9%
Blue5.9%
CMYK percentages
Cyan0.0%
Magenta0.0%
Yellow91.9%
Key (black)27.1%
Color previews
#baba0f text on a black background
contrast 10.12:1
Card sample
#baba0f text on a white background
contrast 2.08:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #baba0f;
Background color
Panel with #baba0f background
background-color: #baba0f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #baba0f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 186, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 186, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #baba0f; background: linear-gradient(135deg, #baba0f, #48BA0F);