#ad7e21
a dark, vivid orange · warm · closest name: peru
RGB
173, 126, 33
HSL
40°, 68%, 40%
CMYK
0, 27, 81, 32
Luminance
0.2392
Every format
| HEX | #ad7e21 |
| RGB | rgb(173, 126, 33) |
| HSL | hsl(40, 68%, 40%) |
| CMYK | cmyk(0%, 27%, 81%, 32%) |
| LAB | lab(56.0 9.9 53.8) |
| LCH | lch(56.0 54.7 79.6) |
| OKLCH | oklch(0.624 0.118 79.5) |
Copy-ready code
/* CSS */
color: #ad7e21;
background-color: #ad7e21;
/* Tailwind (arbitrary) */
class="text-[#ad7e21] bg-[#ad7e21]"
/* SCSS */
$brand: #ad7e21;
/* SwiftUI */
Color(red: 0.678, green: 0.494, blue: 0.129)
/* Android */
Color.parseColor("#ad7e21")Accessibility — WCAG contrast
Aa
#ad7e21 on white: 3.63:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ad7e21 on black: 5.78:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.8%
Green49.4%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta27.2%
Yellow80.9%
Key (black)32.2%
Color previews
#ad7e21 text on a black background
contrast 5.78:1
Card sample
#ad7e21 text on a white background
contrast 3.63:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ad7e21;
Background color
Panel with #ad7e21 background
background-color: #ad7e21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ad7e21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(173, 126, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(173, 126, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ad7e21; background: linear-gradient(135deg, #ad7e21, #7FAD21);