#afaa2d
a dark, vivid yellow · cool · closest name: olive
RGB
175, 170, 45
HSL
58°, 59%, 43%
CMYK
0, 3, 74, 31
Luminance
0.3805
Every format
| HEX | #afaa2d |
| RGB | rgb(175, 170, 45) |
| HSL | hsl(58, 59%, 43%) |
| CMYK | cmyk(0%, 3%, 74%, 31%) |
| LAB | lab(68.1 -12.6 60.8) |
| LCH | lch(68.1 62.1 101.7) |
| OKLCH | oklch(0.720 0.140 107.1) |
Copy-ready code
/* CSS */
color: #afaa2d;
background-color: #afaa2d;
/* Tailwind (arbitrary) */
class="text-[#afaa2d] bg-[#afaa2d]"
/* SCSS */
$brand: #afaa2d;
/* SwiftUI */
Color(red: 0.686, green: 0.667, blue: 0.176)
/* Android */
Color.parseColor("#afaa2d")Accessibility — WCAG contrast
Aa
#afaa2d on white: 2.44:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afaa2d on black: 8.61:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green66.7%
Blue17.6%
CMYK percentages
Cyan0.0%
Magenta2.9%
Yellow74.3%
Key (black)31.4%
Color previews
#afaa2d text on a black background
contrast 8.61:1
Card sample
#afaa2d text on a white background
contrast 2.44:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afaa2d;
Background color
Panel with #afaa2d background
background-color: #afaa2d;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afaa2d;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 170, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 170, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afaa2d; background: linear-gradient(135deg, #afaa2d, #5DAF2D);