Skip to content

#afd950

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

RGB
175, 217, 80
HSL
78°, 64%, 58%
CMYK
19, 0, 63, 15
Luminance
0.5932

Every format

HEX#afd950
RGBrgb(175, 217, 80)
HSLhsl(78, 64%, 58%)
CMYKcmyk(19%, 0%, 63%, 15%)
LABlab(81.5 -33.5 60.9)
LCHlch(81.5 69.5 118.8)
OKLCHoklch(0.829 0.169 124.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd950 on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#afd950 on black: 12.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green85.1%
Blue31.4%

CMYK percentages

Cyan19.4%
Magenta0.0%
Yellow63.1%
Key (black)14.9%

Color previews

#afd950 text on a black background

contrast 12.86:1

Card sample

#afd950 text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afd950

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd950 in the Color Lab