Skip to content

#afab33

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

RGB
175, 171, 51
HSL
58°, 55%, 44%
CMYK
0, 2, 71, 31
Luminance
0.3848

Every format

HEX#afab33
RGBrgb(175, 171, 51)
HSLhsl(58, 55%, 44%)
CMYKcmyk(0%, 2%, 71%, 31%)
LABlab(68.4 -12.8 58.9)
LCHlch(68.4 60.3 102.3)
OKLCHoklch(0.723 0.137 107.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afab33 on white: 2.41:1
AA ✗ fail · AA-large · AAA
Aa
#afab33 on black: 8.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.1%
Blue20.0%

CMYK percentages

Cyan0.0%
Magenta2.3%
Yellow70.9%
Key (black)31.4%

Color previews

#afab33 text on a black background

contrast 8.70:1

Card sample

#afab33 text on a white background

contrast 2.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afab33

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab33 in the Color Lab