#ac9502
a dark, electric yellow · cool · closest name: olive
RGB
172, 149, 2
HSL
52°, 98%, 34%
CMYK
0, 13, 99, 33
Luminance
0.3027
Every format
| HEX | #ac9502 |
| RGB | rgb(172, 149, 2) |
| HSL | hsl(52, 98%, 34%) |
| CMYK | cmyk(0%, 13%, 99%, 33%) |
| LAB | lab(61.9 -3.9 65.5) |
| LCH | lch(61.9 65.6 93.4) |
| OKLCH | oklch(0.670 0.138 98.1) |
Copy-ready code
/* CSS */
color: #ac9502;
background-color: #ac9502;
/* Tailwind (arbitrary) */
class="text-[#ac9502] bg-[#ac9502]"
/* SCSS */
$brand: #ac9502;
/* SwiftUI */
Color(red: 0.675, green: 0.584, blue: 0.008)
/* Android */
Color.parseColor("#ac9502")Accessibility — WCAG contrast
Aa
#ac9502 on white: 2.98:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ac9502 on black: 7.05:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red67.5%
Green58.4%
Blue0.8%
CMYK percentages
Cyan0.0%
Magenta13.4%
Yellow98.8%
Key (black)32.5%
Color previews
#ac9502 text on a black background
contrast 7.05:1
Card sample
#ac9502 text on a white background
contrast 2.98:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ac9502;
Background color
Panel with #ac9502 background
background-color: #ac9502;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ac9502;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(172, 149, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 149, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac9502; background: linear-gradient(135deg, #ac9502, #52AC02);