Skip to content

#ac950f

a dark, electric yellow · cool · closest name: olive

RGB
172, 149, 15
HSL
51°, 84%, 37%
CMYK
0, 13, 91, 33
Luminance
0.3030

Every format

HEX#ac950f
RGBrgb(172, 149, 15)
HSLhsl(51, 84%, 37%)
CMYKcmyk(0%, 13%, 91%, 33%)
LABlab(61.9 -3.7 63.5)
LCHlch(61.9 63.6 93.4)
OKLCHoklch(0.670 0.135 97.8)

Copy-ready code

/* CSS */
color: #ac950f;
background-color: #ac950f;
/* Tailwind (arbitrary) */
class="text-[#ac950f] bg-[#ac950f]"
/* SCSS */
$brand: #ac950f;
/* SwiftUI */
Color(red: 0.675, green: 0.584, blue: 0.059)
/* Android */
Color.parseColor("#ac950f")

Accessibility — WCAG contrast

Aa
#ac950f on white: 2.97:1
AA ✗ fail · AA-large · AAA
Aa
#ac950f on black: 7.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green58.4%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta13.4%
Yellow91.3%
Key (black)32.5%

Color previews

#ac950f text on a black background

contrast 7.06:1

Card sample

#ac950f text on a white background

contrast 2.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #ac950f;
Background color
Panel with #ac950f background
background-color: #ac950f;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #ac950f;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(172, 149, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 149, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac950f;
background: linear-gradient(135deg, #ac950f, #5AAC0F);

Monochromatic scale

Palettes built from #ac950f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac950f in the Color Lab