Skip to content

#afab16

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

RGB
175, 171, 22
HSL
58°, 78%, 39%
CMYK
0, 2, 87, 31
Luminance
0.3830

Every format

HEX#afab16
RGBrgb(175, 171, 22)
HSLhsl(58, 78%, 39%)
CMYKcmyk(0%, 2%, 87%, 31%)
LABlab(68.2 -13.9 67.3)
LCHlch(68.2 68.7 101.6)
OKLCHoklch(0.722 0.151 107.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green67.1%
Blue8.6%

CMYK percentages

Cyan0.0%
Magenta2.3%
Yellow87.4%
Key (black)31.4%

Color previews

#afab16 text on a black background

contrast 8.66:1

Card sample

#afab16 text on a white background

contrast 2.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 171, 22, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 171, 22, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afab16;
background: linear-gradient(135deg, #afab16, #4DAF16);

Monochromatic scale

Palettes built from #afab16

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab16 in the Color Lab