Skip to content

#afdf51

a balanced, vivid green · cool · closest name: olivedrab

RGB
175, 223, 81
HSL
80°, 69%, 60%
CMYK
22, 0, 64, 13
Luminance
0.6248

Every format

HEX#afdf51
RGBrgb(175, 223, 81)
HSLhsl(80, 69%, 60%)
CMYKcmyk(22%, 0%, 64%, 13%)
LABlab(83.2 -36.2 62.4)
LCHlch(83.2 72.1 120.1)
OKLCHoklch(0.843 0.176 125.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afdf51 on white: 1.56:1
AA ✗ fail · AA-large · AAA
Aa
#afdf51 on black: 13.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green87.5%
Blue31.8%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow63.7%
Key (black)12.5%

Color previews

#afdf51 text on a black background

contrast 13.50:1

Card sample

#afdf51 text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 223, 81, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 223, 81, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afdf51;
background: linear-gradient(135deg, #afdf51, #51DF52);

Monochromatic scale

Palettes built from #afdf51

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf51 in the Color Lab