#b2af64
a balanced, soft yellow · cool · closest name: khaki
RGB
178, 175, 100
HSL
58°, 34%, 55%
CMYK
0, 2, 44, 30
Luminance
0.4105
Every format
| HEX | #b2af64 |
| RGB | rgb(178, 175, 100) |
| HSL | hsl(58, 34%, 55%) |
| CMYK | cmyk(0%, 2%, 44%, 30%) |
| LAB | lab(70.2 -9.8 38.7) |
| LCH | lch(70.2 39.9 104.3) |
| OKLCH | oklch(0.740 0.097 106.5) |
Copy-ready code
/* CSS */
color: #b2af64;
background-color: #b2af64;
/* Tailwind (arbitrary) */
class="text-[#b2af64] bg-[#b2af64]"
/* SCSS */
$brand: #b2af64;
/* SwiftUI */
Color(red: 0.698, green: 0.686, blue: 0.392)
/* Android */
Color.parseColor("#b2af64")Accessibility — WCAG contrast
Aa
#b2af64 on white: 2.28:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#b2af64 on black: 9.21:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red69.8%
Green68.6%
Blue39.2%
CMYK percentages
Cyan0.0%
Magenta1.7%
Yellow43.8%
Key (black)30.2%
Color previews
#b2af64 text on a black background
contrast 9.21:1
Card sample
#b2af64 text on a white background
contrast 2.28:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b2af64;
Background color
Panel with #b2af64 background
background-color: #b2af64;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b2af64;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(178, 175, 100, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 175, 100, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2af64; background: linear-gradient(135deg, #b2af64, #81B264);