Skip to content

#afab2c

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

RGB
175, 171, 44
HSL
58°, 60%, 43%
CMYK
0, 2, 75, 31
Luminance
0.3842

Every format

HEX#afab2c
RGBrgb(175, 171, 44)
HSLhsl(58, 60%, 43%)
CMYKcmyk(0%, 2%, 75%, 31%)
LABlab(68.3 -13.2 61.4)
LCHlch(68.3 62.8 102.1)
OKLCHoklch(0.723 0.141 107.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green67.1%
Blue17.3%

CMYK percentages

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

Color previews

#afab2c text on a black background

contrast 8.68:1

Card sample

#afab2c text on a white background

contrast 2.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afab2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab2c in the Color Lab