Skip to content

#ab9213

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

RGB
171, 146, 19
HSL
50°, 80%, 37%
CMYK
0, 15, 89, 33
Luminance
0.2926

Every format

HEX#ab9213
RGBrgb(171, 146, 19)
HSLhsl(50, 80%, 37%)
CMYKcmyk(0%, 15%, 89%, 33%)
LABlab(61.0 -2.5 62.0)
LCHlch(61.0 62.0 92.3)
OKLCHoklch(0.663 0.132 96.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab9213 on white: 3.06:1
AA ✗ fail · AA-large · AAA
Aa
#ab9213 on black: 6.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green57.3%
Blue7.5%

CMYK percentages

Cyan0.0%
Magenta14.6%
Yellow88.9%
Key (black)32.9%

Color previews

#ab9213 text on a black background

contrast 6.85:1

Card sample

#ab9213 text on a white background

contrast 3.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(171, 146, 19, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 146, 19, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab9213;
background: linear-gradient(135deg, #ab9213, #5FAB13);

Monochromatic scale

Palettes built from #ab9213

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab9213 in the Color Lab