Skip to content

#afaa13

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

RGB
175, 170, 19
HSL
58°, 80%, 38%
CMYK
0, 3, 89, 31
Luminance
0.3791

Every format

HEX#afaa13
RGBrgb(175, 170, 19)
HSLhsl(58, 80%, 38%)
CMYKcmyk(0%, 3%, 89%, 31%)
LABlab(68.0 -13.4 67.7)
LCHlch(68.0 69.0 101.2)
OKLCHoklch(0.719 0.151 107.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afaa13 on white: 2.45:1
AA ✗ fail · AA-large · AAA
Aa
#afaa13 on black: 8.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green66.7%
Blue7.5%

CMYK percentages

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

Color previews

#afaa13 text on a black background

contrast 8.58:1

Card sample

#afaa13 text on a white background

contrast 2.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afaa13

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afaa13 in the Color Lab