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