#a78b21
a dark, vivid yellow · cool · closest name: olive
RGB
167, 139, 33
HSL
48°, 67%, 39%
CMYK
0, 17, 80, 35
Luminance
0.2679
Every format
| HEX | #a78b21 |
| RGB | rgb(167, 139, 33) |
| HSL | hsl(48, 67%, 39%) |
| CMYK | cmyk(0%, 17%, 80%, 35%) |
| LAB | lab(58.8 -0.1 56.0) |
| LCH | lch(58.8 56.0 90.1) |
| OKLCH | oklch(0.645 0.122 93.1) |
Copy-ready code
/* CSS */
color: #a78b21;
background-color: #a78b21;
/* Tailwind (arbitrary) */
class="text-[#a78b21] bg-[#a78b21]"
/* SCSS */
$brand: #a78b21;
/* SwiftUI */
Color(red: 0.655, green: 0.545, blue: 0.129)
/* Android */
Color.parseColor("#a78b21")Accessibility — WCAG contrast
Aa
#a78b21 on white: 3.30:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#a78b21 on black: 6.36:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red65.5%
Green54.5%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta16.8%
Yellow80.2%
Key (black)34.5%
Color previews
#a78b21 text on a black background
contrast 6.36:1
Card sample
#a78b21 text on a white background
contrast 3.30:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a78b21;
Background color
Panel with #a78b21 background
background-color: #a78b21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a78b21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(167, 139, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(167, 139, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a78b21; background: linear-gradient(135deg, #a78b21, #6AA721);