#b49021
a dark, vivid yellow · cool · closest name: olive
RGB
180, 144, 33
HSL
45°, 69%, 42%
CMYK
0, 20, 82, 29
Luminance
0.2976
Every format
| HEX | #b49021 |
| RGB | rgb(180, 144, 33) |
| HSL | hsl(45, 69%, 42%) |
| CMYK | cmyk(0%, 20%, 82%, 29%) |
| LAB | lab(61.5 3.1 58.9) |
| LCH | lch(61.5 59.0 87.0) |
| OKLCH | oklch(0.669 0.127 89.2) |
Copy-ready code
/* CSS */
color: #b49021;
background-color: #b49021;
/* Tailwind (arbitrary) */
class="text-[#b49021] bg-[#b49021]"
/* SCSS */
$brand: #b49021;
/* SwiftUI */
Color(red: 0.706, green: 0.565, blue: 0.129)
/* Android */
Color.parseColor("#b49021")Accessibility — WCAG contrast
Aa
#b49021 on white: 3.02:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#b49021 on black: 6.95:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red70.6%
Green56.5%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta20.0%
Yellow81.7%
Key (black)29.4%
Color previews
#b49021 text on a black background
contrast 6.95:1
Card sample
#b49021 text on a white background
contrast 3.02:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b49021;
Background color
Panel with #b49021 background
background-color: #b49021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b49021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(180, 144, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(180, 144, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b49021; background: linear-gradient(135deg, #b49021, #76B421);