Skip to content

#afac1e

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

RGB
175, 172, 30
HSL
59°, 71%, 40%
CMYK
0, 2, 83, 31
Luminance
0.3871

Every format

HEX#afac1e
RGBrgb(175, 172, 30)
HSLhsl(59, 71%, 40%)
CMYKcmyk(0%, 2%, 83%, 31%)
LABlab(68.5 -14.2 65.7)
LCHlch(68.5 67.2 102.2)
OKLCHoklch(0.724 0.149 108.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afac1e on white: 2.40:1
AA ✗ fail · AA-large · AAA
Aa
#afac1e on black: 8.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.5%
Blue11.8%

CMYK percentages

Cyan0.0%
Magenta1.7%
Yellow82.9%
Key (black)31.4%

Color previews

#afac1e text on a black background

contrast 8.74:1

Card sample

#afac1e text on a white background

contrast 2.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afac1e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afac1e in the Color Lab