Skip to content

#afd50b

a dark, electric green · cool · closest name: yellow

RGB
175, 213, 11
HSL
71°, 90%, 44%
CMYK
18, 0, 95, 17
Luminance
0.5673

Every format

HEX#afd50b
RGBrgb(175, 213, 11)
HSLhsl(71, 90%, 44%)
CMYKcmyk(18%, 0%, 95%, 17%)
LABlab(80.0 -34.5 78.2)
LCHlch(80.0 85.5 113.8)
OKLCHoklch(0.816 0.196 121.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afd50b on white: 1.70:1
AA ✗ fail · AA-large · AAA
Aa
#afd50b on black: 12.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green83.5%
Blue4.3%

CMYK percentages

Cyan17.8%
Magenta0.0%
Yellow94.8%
Key (black)16.5%

Color previews

#afd50b text on a black background

contrast 12.35:1

Card sample

#afd50b text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 213, 11, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 213, 11, 0.45);
Border & gradient
Gradient panel
border: 3px solid #afd50b;
background: linear-gradient(135deg, #afd50b, #28D50B);

Monochromatic scale

Palettes built from #afd50b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afd50b in the Color Lab