Skip to content

#afab3b

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

RGB
175, 171, 59
HSL
58°, 50%, 46%
CMYK
0, 2, 66, 31
Luminance
0.3856

Every format

HEX#afab3b
RGBrgb(175, 171, 59)
HSLhsl(58, 50%, 46%)
CMYKcmyk(0%, 2%, 66%, 31%)
LABlab(68.4 -12.4 55.8)
LCHlch(68.4 57.2 102.5)
OKLCHoklch(0.724 0.132 107.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green67.1%
Blue23.1%

CMYK percentages

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

Color previews

#afab3b text on a black background

contrast 8.71:1

Card sample

#afab3b text on a white background

contrast 2.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afab3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afab3b in the Color Lab