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