#af8021
a dark, vivid yellow · warm · closest name: peru
RGB
175, 128, 33
HSL
40°, 68%, 41%
CMYK
0, 27, 81, 31
Luminance
0.2466
Every format
| HEX | #af8021 |
| RGB | rgb(175, 128, 33) |
| HSL | hsl(40, 68%, 41%) |
| CMYK | cmyk(0%, 27%, 81%, 31%) |
| LAB | lab(56.8 9.7 54.5) |
| LCH | lch(56.8 55.4 80.0) |
| OKLCH | oklch(0.631 0.120 79.9) |
Copy-ready code
/* CSS */
color: #af8021;
background-color: #af8021;
/* Tailwind (arbitrary) */
class="text-[#af8021] bg-[#af8021]"
/* SCSS */
$brand: #af8021;
/* SwiftUI */
Color(red: 0.686, green: 0.502, blue: 0.129)
/* Android */
Color.parseColor("#af8021")Accessibility — WCAG contrast
Aa
#af8021 on white: 3.54:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af8021 on black: 5.93:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green50.2%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta26.9%
Yellow81.1%
Key (black)31.4%
Color previews
#af8021 text on a black background
contrast 5.93:1
Card sample
#af8021 text on a white background
contrast 3.54:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af8021;
Background color
Panel with #af8021 background
background-color: #af8021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af8021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 128, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 128, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af8021; background: linear-gradient(135deg, #af8021, #7FAF21);