Skip to content

#afab3f

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

RGB
175, 171, 63
HSL
58°, 47%, 47%
CMYK
0, 2, 64, 31
Luminance
0.3860

Every format

HEX#afab3f
RGBrgb(175, 171, 63)
HSLhsl(58, 47%, 47%)
CMYKcmyk(0%, 2%, 64%, 31%)
LABlab(68.5 -12.1 54.2)
LCHlch(68.5 55.5 102.6)
OKLCHoklch(0.724 0.129 107.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green67.1%
Blue24.7%

CMYK percentages

Cyan0.0%
Magenta2.3%
Yellow64.0%
Key (black)31.4%

Color previews

#afab3f text on a black background

contrast 8.72:1

Card sample

#afab3f text on a white background

contrast 2.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afab3f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab3f in the Color Lab