Skip to content

#afd050

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

RGB
175, 208, 80
HSL
76°, 58%, 57%
CMYK
16, 0, 62, 18
Luminance
0.5480

Every format

HEX#afd050
RGBrgb(175, 208, 80)
HSLhsl(76, 58%, 57%)
CMYKcmyk(16%, 0%, 62%, 18%)
LABlab(78.9 -29.3 58.2)
LCHlch(78.9 65.2 116.7)
OKLCHoklch(0.808 0.158 122.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd050 on white: 1.76:1
AA ✗ fail · AA-large · AAA
Aa
#afd050 on black: 11.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green81.6%
Blue31.4%

CMYK percentages

Cyan15.9%
Magenta0.0%
Yellow61.5%
Key (black)18.4%

Color previews

#afd050 text on a black background

contrast 11.96:1

Card sample

#afd050 text on a white background

contrast 1.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afd050

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd050 in the Color Lab