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