Skip to content

#afaa21

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

RGB
175, 170, 33
HSL
58°, 68%, 41%
CMYK
0, 3, 81, 31
Luminance
0.3797

Every format

HEX#afaa21
RGBrgb(175, 170, 33)
HSLhsl(58, 68%, 41%)
CMYKcmyk(0%, 3%, 81%, 31%)
LABlab(68.0 -13.1 64.5)
LCHlch(68.0 65.8 101.4)
OKLCHoklch(0.720 0.146 107.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afaa21 on white: 2.44:1
AA ✗ fail · AA-large · AAA
Aa
#afaa21 on black: 8.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green66.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow81.1%
Key (black)31.4%

Color previews

#afaa21 text on a black background

contrast 8.59:1

Card sample

#afaa21 text on a white background

contrast 2.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afaa21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afaa21 in the Color Lab