Skip to content

#afb32f

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

RGB
175, 179, 47
HSL
62°, 58%, 44%
CMYK
2, 0, 74, 30
Luminance
0.4156

Every format

HEX#afb32f
RGBrgb(175, 179, 47)
HSLhsl(62, 58%, 44%)
CMYKcmyk(2%, 0%, 74%, 30%)
LABlab(70.6 -17.1 62.5)
LCHlch(70.6 64.8 105.3)
OKLCHoklch(0.740 0.148 111.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afb32f on white: 2.26:1
AA ✗ fail · AA-large · AAA
Aa
#afb32f on black: 9.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green70.2%
Blue18.4%

CMYK percentages

Cyan2.2%
Magenta0.0%
Yellow73.7%
Key (black)29.8%

Color previews

#afb32f text on a black background

contrast 9.31:1

Card sample

#afb32f text on a white background

contrast 2.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afb32f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afb32f in the Color Lab