Skip to content

#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
RGBrgb(172, 149, 2)
HSLhsl(52, 98%, 34%)
CMYKcmyk(0%, 13%, 99%, 33%)
LABlab(61.9 -3.9 65.5)
LCHlch(61.9 65.6 93.4)
OKLCHoklch(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);

Monochromatic scale

Palettes built from #ac9502

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac9502 in the Color Lab