Skip to content

#abac0f

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

RGB
171, 172, 15
HSL
60°, 84%, 37%
CMYK
1, 0, 91, 33
Luminance
0.3820

Every format

HEX#abac0f
RGBrgb(171, 172, 15)
HSLhsl(60, 84%, 37%)
CMYKcmyk(1%, 0%, 91%, 33%)
LABlab(68.2 -16.3 68.3)
LCHlch(68.2 70.3 103.4)
OKLCHoklch(0.720 0.155 110.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#abac0f on white: 2.43:1
AA ✗ fail · AA-large · AAA
Aa
#abac0f on black: 8.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green67.5%
Blue5.9%

CMYK percentages

Cyan0.6%
Magenta0.0%
Yellow91.3%
Key (black)32.5%

Color previews

#abac0f text on a black background

contrast 8.64:1

Card sample

#abac0f text on a white background

contrast 2.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #abac0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #abac0f in the Color Lab