Skip to content

#afab39

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

RGB
175, 171, 57
HSL
58°, 51%, 46%
CMYK
0, 2, 67, 31
Luminance
0.3854

Every format

HEX#afab39
RGBrgb(175, 171, 57)
HSLhsl(58, 51%, 46%)
CMYKcmyk(0%, 2%, 67%, 31%)
LABlab(68.4 -12.5 56.6)
LCHlch(68.4 58.0 102.4)
OKLCHoklch(0.723 0.133 107.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green67.1%
Blue22.4%

CMYK percentages

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

Color previews

#afab39 text on a black background

contrast 8.71:1

Card sample

#afab39 text on a white background

contrast 2.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afab39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab39 in the Color Lab