#b3af21
a dark, vivid yellow · cool · closest name: olive
RGB
179, 175, 33
HSL
58°, 69%, 42%
CMYK
0, 2, 82, 30
Luminance
0.4035
Every format
| HEX | #b3af21 |
| RGB | rgb(179, 175, 33) |
| HSL | hsl(58, 69%, 42%) |
| CMYK | cmyk(0%, 2%, 82%, 30%) |
| LAB | lab(69.7 -13.9 66.1) |
| LCH | lch(69.7 67.5 101.9) |
| OKLCH | oklch(0.734 0.150 107.8) |
Copy-ready code
/* CSS */
color: #b3af21;
background-color: #b3af21;
/* Tailwind (arbitrary) */
class="text-[#b3af21] bg-[#b3af21]"
/* SCSS */
$brand: #b3af21;
/* SwiftUI */
Color(red: 0.702, green: 0.686, blue: 0.129)
/* Android */
Color.parseColor("#b3af21")Accessibility — WCAG contrast
Aa
#b3af21 on white: 2.32:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#b3af21 on black: 9.07:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red70.2%
Green68.6%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta2.2%
Yellow81.6%
Key (black)29.8%
Color previews
#b3af21 text on a black background
contrast 9.07:1
Card sample
#b3af21 text on a white background
contrast 2.32:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b3af21;
Background color
Panel with #b3af21 background
background-color: #b3af21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b3af21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(179, 175, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(179, 175, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b3af21; background: linear-gradient(135deg, #b3af21, #56B321);