#b48e21
a dark, vivid yellow · warm · closest name: olive
RGB
180, 142, 33
HSL
45°, 69%, 42%
CMYK
0, 21, 82, 29
Luminance
0.2916
Every format
| HEX | #b48e21 |
| RGB | rgb(180, 142, 33) |
| HSL | hsl(45, 69%, 42%) |
| CMYK | cmyk(0%, 21%, 82%, 29%) |
| LAB | lab(60.9 4.2 58.5) |
| LCH | lch(60.9 58.6 85.9) |
| OKLCH | oklch(0.665 0.126 87.8) |
Copy-ready code
/* CSS */
color: #b48e21;
background-color: #b48e21;
/* Tailwind (arbitrary) */
class="text-[#b48e21] bg-[#b48e21]"
/* SCSS */
$brand: #b48e21;
/* SwiftUI */
Color(red: 0.706, green: 0.557, blue: 0.129)
/* Android */
Color.parseColor("#b48e21")Accessibility — WCAG contrast
Aa
#b48e21 on white: 3.07:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#b48e21 on black: 6.83:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red70.6%
Green55.7%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta21.1%
Yellow81.7%
Key (black)29.4%
Color previews
#b48e21 text on a black background
contrast 6.83:1
Card sample
#b48e21 text on a white background
contrast 3.07:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b48e21;
Background color
Panel with #b48e21 background
background-color: #b48e21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b48e21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(180, 142, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(180, 142, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b48e21; background: linear-gradient(135deg, #b48e21, #78B421);