#afac28
a dark, vivid yellow · cool · closest name: olive
RGB
175, 172, 40
HSL
59°, 63%, 42%
CMYK
0, 2, 77, 31
Luminance
0.3877
Every format
| HEX | #afac28 |
| RGB | rgb(175, 172, 40) |
| HSL | hsl(59, 63%, 42%) |
| CMYK | cmyk(0%, 2%, 77%, 31%) |
| LAB | lab(68.6 -13.8 62.9) |
| LCH | lch(68.6 64.4 102.4) |
| OKLCH | oklch(0.725 0.144 108.2) |
Copy-ready code
/* CSS */
color: #afac28;
background-color: #afac28;
/* Tailwind (arbitrary) */
class="text-[#afac28] bg-[#afac28]"
/* SCSS */
$brand: #afac28;
/* SwiftUI */
Color(red: 0.686, green: 0.675, blue: 0.157)
/* Android */
Color.parseColor("#afac28")Accessibility — WCAG contrast
Aa
#afac28 on white: 2.40:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#afac28 on black: 8.75:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red68.6%
Green67.5%
Blue15.7%
CMYK percentages
Cyan0.0%
Magenta1.7%
Yellow77.1%
Key (black)31.4%
Color previews
#afac28 text on a black background
contrast 8.75:1
Card sample
#afac28 text on a white background
contrast 2.40:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #afac28;
Background color
Panel with #afac28 background
background-color: #afac28;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #afac28;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(175, 172, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 172, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afac28; background: linear-gradient(135deg, #afac28, #58AF28);