#b9c511
a dark, electric yellow · cool · closest name: gold
RGB
185, 197, 17
HSL
64°, 84%, 42%
CMYK
6, 0, 91, 23
Luminance
0.5029
Every format
| HEX | #b9c511 |
| RGB | rgb(185, 197, 17) |
| HSL | hsl(64, 84%, 42%) |
| CMYK | cmyk(6%, 0%, 91%, 23%) |
| LAB | lab(76.3 -22.7 74.8) |
| LCH | lch(76.3 78.2 106.9) |
| OKLCH | oklch(0.787 0.174 114.1) |
Copy-ready code
/* CSS */
color: #b9c511;
background-color: #b9c511;
/* Tailwind (arbitrary) */
class="text-[#b9c511] bg-[#b9c511]"
/* SCSS */
$brand: #b9c511;
/* SwiftUI */
Color(red: 0.725, green: 0.773, blue: 0.067)
/* Android */
Color.parseColor("#b9c511")Accessibility — WCAG contrast
Aa
#b9c511 on white: 1.90:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#b9c511 on black: 11.06:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.5%
Green77.3%
Blue6.7%
CMYK percentages
Cyan6.1%
Magenta0.0%
Yellow91.4%
Key (black)22.7%
Color previews
#b9c511 text on a black background
contrast 11.06:1
Card sample
#b9c511 text on a white background
contrast 1.90:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b9c511;
Background color
Panel with #b9c511 background
background-color: #b9c511;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b9c511;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(185, 197, 17, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(185, 197, 17, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b9c511; background: linear-gradient(135deg, #b9c511, #41C511);