Skip to content

#afaa0f

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

RGB
175, 170, 15
HSL
58°, 84%, 37%
CMYK
0, 3, 91, 31
Luminance
0.3790

Every format

HEX#afaa0f
RGBrgb(175, 170, 15)
HSLhsl(58, 84%, 37%)
CMYKcmyk(0%, 3%, 91%, 31%)
LABlab(68.0 -13.5 68.3)
LCHlch(68.0 69.6 101.2)
OKLCHoklch(0.719 0.152 107.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green66.7%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow91.4%
Key (black)31.4%

Color previews

#afaa0f text on a black background

contrast 8.58:1

Card sample

#afaa0f text on a white background

contrast 2.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afaa0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afaa0f in the Color Lab