Skip to content

#afac2e

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

RGB
175, 172, 46
HSL
59°, 58%, 43%
CMYK
0, 2, 74, 31
Luminance
0.3882

Every format

HEX#afac2e
RGBrgb(175, 172, 46)
HSLhsl(59, 58%, 43%)
CMYKcmyk(0%, 2%, 74%, 31%)
LABlab(68.6 -13.6 61.0)
LCHlch(68.6 62.4 102.6)
OKLCHoklch(0.725 0.141 108.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afac2e on white: 2.40:1
AA ✗ fail · AA-large · AAA
Aa
#afac2e on black: 8.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green67.5%
Blue18.0%

CMYK percentages

Cyan0.0%
Magenta1.7%
Yellow73.7%
Key (black)31.4%

Color previews

#afac2e text on a black background

contrast 8.76:1

Card sample

#afac2e text on a white background

contrast 2.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afac2e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afac2e in the Color Lab