#af8917
a dark, electric yellow · cool · closest name: olive
RGB
175, 137, 23
HSL
45°, 77%, 39%
CMYK
0, 22, 87, 31
Luminance
0.2707
Every format
| HEX | #af8917 |
| RGB | rgb(175, 137, 23) |
| HSL | hsl(45, 77%, 39%) |
| CMYK | cmyk(0%, 22%, 87%, 31%) |
| LAB | lab(59.0 4.3 59.6) |
| LCH | lch(59.0 59.8 85.8) |
| OKLCH | oklch(0.648 0.127 87.8) |
Copy-ready code
/* CSS */
color: #af8917;
background-color: #af8917;
/* Tailwind (arbitrary) */
class="text-[#af8917] bg-[#af8917]"
/* SCSS */
$brand: #af8917;
/* SwiftUI */
Color(red: 0.686, green: 0.537, blue: 0.090)
/* Android */
Color.parseColor("#af8917")Accessibility — WCAG contrast
Aa
#af8917 on white: 3.27:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#af8917 on black: 6.41:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green53.7%
Blue9.0%
CMYK percentages
Cyan0.0%
Magenta21.7%
Yellow86.9%
Key (black)31.4%
Color previews
#af8917 text on a black background
contrast 6.41:1
Card sample
#af8917 text on a white background
contrast 3.27:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af8917;
Background color
Panel with #af8917 background
background-color: #af8917;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af8917;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 137, 23, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 137, 23, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af8917; background: linear-gradient(135deg, #af8917, #70AF17);