#af9a21
a dark, vivid yellow · cool · closest name: olive
RGB
175, 154, 33
HSL
51°, 68%, 41%
CMYK
0, 12, 81, 31
Luminance
0.3233
Every format
| HEX | #af9a21 |
| RGB | rgb(175, 154, 33) |
| HSL | hsl(51, 68%, 41%) |
| CMYK | cmyk(0%, 12%, 81%, 31%) |
| LAB | lab(63.6 -4.6 60.6) |
| LCH | lch(63.6 60.8 94.4) |
| OKLCH | oklch(0.685 0.133 98.6) |
Copy-ready code
/* CSS */
color: #af9a21;
background-color: #af9a21;
/* Tailwind (arbitrary) */
class="text-[#af9a21] bg-[#af9a21]"
/* SCSS */
$brand: #af9a21;
/* SwiftUI */
Color(red: 0.686, green: 0.604, blue: 0.129)
/* Android */
Color.parseColor("#af9a21")Accessibility — WCAG contrast
Aa
#af9a21 on white: 2.81:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#af9a21 on black: 7.47:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green60.4%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta12.0%
Yellow81.1%
Key (black)31.4%
Color previews
#af9a21 text on a black background
contrast 7.47:1
Card sample
#af9a21 text on a white background
contrast 2.81:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #af9a21;
Background color
Panel with #af9a21 background
background-color: #af9a21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #af9a21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 154, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 154, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af9a21; background: linear-gradient(135deg, #af9a21, #65AF21);