#afac32
a dark, vivid yellow · cool · closest name: olive
RGB
175, 172, 50
HSL
59°, 56%, 44%
CMYK
0, 2, 71, 31
Luminance
0.3885
Every format
| HEX | #afac32 |
| RGB | rgb(175, 172, 50) |
| HSL | hsl(59, 56%, 44%) |
| CMYK | cmyk(0%, 2%, 71%, 31%) |
| LAB | lab(68.6 -13.4 59.5) |
| LCH | lch(68.6 61.0 102.7) |
| OKLCH | oklch(0.725 0.139 108.0) |
Copy-ready code
/* CSS */
color: #afac32;
background-color: #afac32;
/* Tailwind (arbitrary) */
class="text-[#afac32] bg-[#afac32]"
/* SCSS */
$brand: #afac32;
/* SwiftUI */
Color(red: 0.686, green: 0.675, blue: 0.196)
/* Android */
Color.parseColor("#afac32")Accessibility — WCAG contrast
Aa
#afac32 on white: 2.39:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afac32 on black: 8.77:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green67.5%
Blue19.6%
CMYK percentages
Cyan0.0%
Magenta1.7%
Yellow71.4%
Key (black)31.4%
Color previews
#afac32 text on a black background
contrast 8.77:1
Card sample
#afac32 text on a white background
contrast 2.39:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afac32;
Background color
Panel with #afac32 background
background-color: #afac32;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afac32;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 172, 50, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 172, 50, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afac32; background: linear-gradient(135deg, #afac32, #5FAF32);