#b49f21
a dark, vivid yellow · cool · closest name: olive
RGB
180, 159, 33
HSL
51°, 69%, 42%
CMYK
0, 12, 82, 29
Luminance
0.3461
Every format
| HEX | #b49f21 |
| RGB | rgb(180, 159, 33) |
| HSL | hsl(51, 69%, 42%) |
| CMYK | cmyk(0%, 12%, 82%, 29%) |
| LAB | lab(65.4 -5.0 62.4) |
| LCH | lch(65.4 62.6 94.6) |
| OKLCH | oklch(0.700 0.136 99.0) |
Copy-ready code
/* CSS */
color: #b49f21;
background-color: #b49f21;
/* Tailwind (arbitrary) */
class="text-[#b49f21] bg-[#b49f21]"
/* SCSS */
$brand: #b49f21;
/* SwiftUI */
Color(red: 0.706, green: 0.624, blue: 0.129)
/* Android */
Color.parseColor("#b49f21")Accessibility — WCAG contrast
Aa
#b49f21 on white: 2.65:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#b49f21 on black: 7.92:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red70.6%
Green62.4%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta11.7%
Yellow81.7%
Key (black)29.4%
Color previews
#b49f21 text on a black background
contrast 7.92:1
Card sample
#b49f21 text on a white background
contrast 2.65:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b49f21;
Background color
Panel with #b49f21 background
background-color: #b49f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b49f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(180, 159, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(180, 159, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b49f21; background: linear-gradient(135deg, #b49f21, #67B421);