Skip to content

#afeb50

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

RGB
175, 235, 80
HSL
83°, 80%, 62%
CMYK
26, 0, 66, 8
Luminance
0.6911

Every format

HEX#afeb50
RGBrgb(175, 235, 80)
HSLhsl(83, 80%, 62%)
CMYKcmyk(26%, 0%, 66%, 8%)
LABlab(86.6 -41.6 66.3)
LCHlch(86.6 78.3 122.1)
OKLCHoklch(0.870 0.192 128.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afeb50 on white: 1.42:1
AA ✗ fail · AA-large · AAA
Aa
#afeb50 on black: 14.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green92.2%
Blue31.4%

CMYK percentages

Cyan25.5%
Magenta0.0%
Yellow66.0%
Key (black)7.8%

Color previews

#afeb50 text on a black background

contrast 14.82:1

Card sample

#afeb50 text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afeb50

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afeb50 in the Color Lab