#a87f21
a dark, vivid yellow · warm · closest name: peru
RGB
168, 127, 33
HSL
42°, 67%, 39%
CMYK
0, 24, 80, 34
Luminance
0.2361
Every format
| HEX | #a87f21 |
| RGB | rgb(168, 127, 33) |
| HSL | hsl(42, 67%, 39%) |
| CMYK | cmyk(0%, 24%, 80%, 34%) |
| LAB | lab(55.7 7.0 53.3) |
| LCH | lch(55.7 53.8 82.5) |
| OKLCH | oklch(0.621 0.116 83.2) |
Copy-ready code
/* CSS */
color: #a87f21;
background-color: #a87f21;
/* Tailwind (arbitrary) */
class="text-[#a87f21] bg-[#a87f21]"
/* SCSS */
$brand: #a87f21;
/* SwiftUI */
Color(red: 0.659, green: 0.498, blue: 0.129)
/* Android */
Color.parseColor("#a87f21")Accessibility — WCAG contrast
Aa
#a87f21 on white: 3.67:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#a87f21 on black: 5.72:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red65.9%
Green49.8%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta24.4%
Yellow80.4%
Key (black)34.1%
Color previews
#a87f21 text on a black background
contrast 5.72:1
Card sample
#a87f21 text on a white background
contrast 3.67:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #a87f21;
Background color
Panel with #a87f21 background
background-color: #a87f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #a87f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(168, 127, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(168, 127, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a87f21; background: linear-gradient(135deg, #a87f21, #77A821);