Skip to content

#afdf50

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

RGB
175, 223, 80
HSL
80°, 69%, 59%
CMYK
22, 0, 64, 13
Luminance
0.6247

Every format

HEX#afdf50
RGBrgb(175, 223, 80)
HSLhsl(80, 69%, 59%)
CMYKcmyk(22%, 0%, 64%, 13%)
LABlab(83.2 -36.2 62.8)
LCHlch(83.2 72.5 120.0)
OKLCHoklch(0.843 0.177 125.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green87.5%
Blue31.4%

CMYK percentages

Cyan21.5%
Magenta0.0%
Yellow64.1%
Key (black)12.5%

Color previews

#afdf50 text on a black background

contrast 13.49:1

Card sample

#afdf50 text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afdf50

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afdf50 in the Color Lab