Skip to content

#afeb1e

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

RGB
175, 235, 30
HSL
78°, 84%, 52%
CMYK
26, 0, 87, 8
Luminance
0.6862

Every format

HEX#afeb1e
RGBrgb(175, 235, 30)
HSLhsl(78, 84%, 52%)
CMYKcmyk(26%, 0%, 87%, 8%)
LABlab(86.3 -43.9 80.6)
LCHlch(86.3 91.8 118.6)
OKLCHoklch(0.867 0.216 126.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#afeb1e on white: 1.43:1
AA ✗ fail · AA-large · AAA
Aa
#afeb1e on black: 14.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green92.2%
Blue11.8%

CMYK percentages

Cyan25.5%
Magenta0.0%
Yellow87.2%
Key (black)7.8%

Color previews

#afeb1e text on a black background

contrast 14.72:1

Card sample

#afeb1e text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afeb1e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afeb1e in the Color Lab