Skip to content

#afac27

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

RGB
175, 172, 39
HSL
59°, 64%, 42%
CMYK
0, 2, 78, 31
Luminance
0.3877

Every format

HEX#afac27
RGBrgb(175, 172, 39)
HSLhsl(59, 64%, 42%)
CMYKcmyk(0%, 2%, 78%, 31%)
LABlab(68.6 -13.9 63.2)
LCHlch(68.6 64.7 102.4)
OKLCHoklch(0.724 0.145 108.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green67.5%
Blue15.3%

CMYK percentages

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

Color previews

#afac27 text on a black background

contrast 8.75:1

Card sample

#afac27 text on a white background

contrast 2.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afac27

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afac27 in the Color Lab