Skip to content

#afab22

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

RGB
175, 171, 34
HSL
58°, 68%, 41%
CMYK
0, 2, 81, 31
Luminance
0.3836

Every format

HEX#afab22
RGBrgb(175, 171, 34)
HSLhsl(58, 68%, 41%)
CMYKcmyk(0%, 2%, 81%, 31%)
LABlab(68.3 -13.5 64.4)
LCHlch(68.3 65.8 101.9)
OKLCHoklch(0.722 0.146 107.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afab22 on white: 2.42:1
AA ✗ fail · AA-large · AAA
Aa
#afab22 on black: 8.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.1%
Blue13.3%

CMYK percentages

Cyan0.0%
Magenta2.3%
Yellow80.6%
Key (black)31.4%

Color previews

#afab22 text on a black background

contrast 8.67:1

Card sample

#afab22 text on a white background

contrast 2.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afab22

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab22 in the Color Lab