#a28b21
a dark, vivid yellow · cool · closest name: olive
RGB
162, 139, 33
HSL
49°, 66%, 38%
CMYK
0, 14, 80, 37
Luminance
0.2626
Every format
| HEX | #a28b21 |
| RGB | rgb(162, 139, 33) |
| HSL | hsl(49, 66%, 38%) |
| CMYK | cmyk(0%, 14%, 80%, 37%) |
| LAB | lab(58.3 -2.4 55.4) |
| LCH | lch(58.3 55.5 92.4) |
| OKLCH | oklch(0.640 0.121 96.0) |
Copy-ready code
/* CSS */
color: #a28b21;
background-color: #a28b21;
/* Tailwind (arbitrary) */
class="text-[#a28b21] bg-[#a28b21]"
/* SCSS */
$brand: #a28b21;
/* SwiftUI */
Color(red: 0.635, green: 0.545, blue: 0.129)
/* Android */
Color.parseColor("#a28b21")Accessibility — WCAG contrast
Aa
#a28b21 on white: 3.36:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#a28b21 on black: 6.25:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red63.5%
Green54.5%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta14.2%
Yellow79.6%
Key (black)36.5%
Color previews
#a28b21 text on a black background
contrast 6.25:1
Card sample
#a28b21 text on a white background
contrast 3.36:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a28b21;
Background color
Panel with #a28b21 background
background-color: #a28b21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a28b21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(162, 139, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(162, 139, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a28b21; background: linear-gradient(135deg, #a28b21, #63A221);