Skip to content

#abc040

a balanced, vivid yellow · cool · closest name: olivedrab

RGB
171, 192, 64
HSL
70°, 50%, 50%
CMYK
11, 0, 67, 25
Luminance
0.4673

Every format

HEX#abc040
RGBrgb(171, 192, 64)
HSLhsl(70, 50%, 50%)
CMYKcmyk(11%, 0%, 67%, 25%)
LABlab(74.0 -24.3 59.5)
LCHlch(74.0 64.3 112.3)
OKLCHoklch(0.768 0.152 118.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#abc040 on white: 2.03:1
AA ✗ fail · AA-large · AAA
Aa
#abc040 on black: 10.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green75.3%
Blue25.1%

CMYK percentages

Cyan10.9%
Magenta0.0%
Yellow66.7%
Key (black)24.7%

Color previews

#abc040 text on a black background

contrast 10.35:1

Card sample

#abc040 text on a white background

contrast 2.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(171, 192, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 192, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #abc040;
background: linear-gradient(135deg, #abc040, #56C040);

Monochromatic scale

Palettes built from #abc040

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #abc040 in the Color Lab