#bbaf0c
a dark, electric yellow · cool · closest name: olive
RGB
187, 175, 12
HSL
56°, 88%, 39%
CMYK
0, 6, 94, 27
Luminance
0.4125
Every format
| HEX | #bbaf0c |
| RGB | rgb(187, 175, 12) |
| HSL | hsl(56, 88%, 39%) |
| CMYK | cmyk(0%, 6%, 94%, 27%) |
| LAB | lab(70.3 -10.8 71.0) |
| LCH | lch(70.3 71.9 98.7) |
| OKLCH | oklch(0.741 0.155 104.5) |
Copy-ready code
/* CSS */
color: #bbaf0c;
background-color: #bbaf0c;
/* Tailwind (arbitrary) */
class="text-[#bbaf0c] bg-[#bbaf0c]"
/* SCSS */
$brand: #bbaf0c;
/* SwiftUI */
Color(red: 0.733, green: 0.686, blue: 0.047)
/* Android */
Color.parseColor("#bbaf0c")Accessibility — WCAG contrast
Aa
#bbaf0c on white: 2.27:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#bbaf0c on black: 9.25:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red73.3%
Green68.6%
Blue4.7%
CMYK percentages
Cyan0.0%
Magenta6.4%
Yellow93.6%
Key (black)26.7%
Color previews
#bbaf0c text on a black background
contrast 9.25:1
Card sample
#bbaf0c text on a white background
contrast 2.27:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #bbaf0c;
Background color
Panel with #bbaf0c background
background-color: #bbaf0c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #bbaf0c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(187, 175, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(187, 175, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bbaf0c; background: linear-gradient(135deg, #bbaf0c, #52BB0C);