Skip to content

#afab1d

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

RGB
175, 171, 29
HSL
58°, 72%, 40%
CMYK
0, 2, 83, 31
Luminance
0.3833

Every format

HEX#afab1d
RGBrgb(175, 171, 29)
HSLhsl(58, 72%, 40%)
CMYKcmyk(0%, 2%, 83%, 31%)
LABlab(68.3 -13.7 65.7)
LCHlch(68.3 67.2 101.8)
OKLCHoklch(0.722 0.148 107.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afab1d on white: 2.42:1
AA ✗ fail · AA-large · AAA
Aa
#afab1d on black: 8.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.1%
Blue11.4%

CMYK percentages

Cyan0.0%
Magenta2.3%
Yellow83.4%
Key (black)31.4%

Color previews

#afab1d text on a black background

contrast 8.67:1

Card sample

#afab1d text on a white background

contrast 2.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afab1d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab1d in the Color Lab