#bac00c
a dark, electric yellow · cool · closest name: gold
RGB
186, 192, 12
HSL
62°, 88%, 40%
CMYK
3, 0, 94, 25
Luminance
0.4816
Every format
| HEX | #bac00c |
| RGB | rgb(186, 192, 12) |
| HSL | hsl(62, 88%, 40%) |
| CMYK | cmyk(3%, 0%, 94%, 25%) |
| LAB | lab(74.9 -19.9 74.5) |
| LCH | lch(74.9 77.1 104.9) |
| OKLCH | oklch(0.777 0.170 112.0) |
Copy-ready code
/* CSS */
color: #bac00c;
background-color: #bac00c;
/* Tailwind (arbitrary) */
class="text-[#bac00c] bg-[#bac00c]"
/* SCSS */
$brand: #bac00c;
/* SwiftUI */
Color(red: 0.729, green: 0.753, blue: 0.047)
/* Android */
Color.parseColor("#bac00c")Accessibility — WCAG contrast
Aa
#bac00c on white: 1.97:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#bac00c on black: 10.63:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green75.3%
Blue4.7%
CMYK percentages
Cyan3.1%
Magenta0.0%
Yellow93.7%
Key (black)24.7%
Color previews
#bac00c text on a black background
contrast 10.63:1
Card sample
#bac00c text on a white background
contrast 1.97:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #bac00c;
Background color
Panel with #bac00c background
background-color: #bac00c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #bac00c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 192, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 192, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bac00c; background: linear-gradient(135deg, #bac00c, #42C00C);