Skip to content

#afeb3b

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

RGB
175, 235, 59
HSL
81°, 82%, 58%
CMYK
26, 0, 75, 8
Luminance
0.6885

Every format

HEX#afeb3b
RGBrgb(175, 235, 59)
HSLhsl(81, 82%, 58%)
CMYKcmyk(26%, 0%, 75%, 8%)
LABlab(86.4 -42.8 73.6)
LCHlch(86.4 85.1 120.2)
OKLCHoklch(0.869 0.204 127.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red68.6%
Green92.2%
Blue23.1%

CMYK percentages

Cyan25.5%
Magenta0.0%
Yellow74.9%
Key (black)7.8%

Color previews

#afeb3b text on a black background

contrast 14.77:1

Card sample

#afeb3b text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #afeb3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #afeb3b in the Color Lab