Skip to content

#afab41

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

RGB
175, 171, 65
HSL
58°, 46%, 47%
CMYK
0, 2, 63, 31
Luminance
0.3862

Every format

HEX#afab41
RGBrgb(175, 171, 65)
HSLhsl(58, 46%, 47%)
CMYKcmyk(0%, 2%, 63%, 31%)
LABlab(68.5 -12.0 53.3)
LCHlch(68.5 54.7 102.7)
OKLCHoklch(0.724 0.127 107.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afab41 on white: 2.41:1
AA ✗ fail · AA-large · AAA
Aa
#afab41 on black: 8.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.1%
Blue25.5%

CMYK percentages

Cyan0.0%
Magenta2.3%
Yellow62.9%
Key (black)31.4%

Color previews

#afab41 text on a black background

contrast 8.72:1

Card sample

#afab41 text on a white background

contrast 2.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afab41

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab41 in the Color Lab