Skip to content

#bafe2d

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

RGB
186, 254, 45
HSL
80°, 99%, 59%
CMYK
27, 0, 82, 0
Luminance
0.8151

Every format

HEX#bafe2d
RGBrgb(186, 254, 45)
HSLhsl(80, 99%, 59%)
CMYKcmyk(27%, 0%, 82%, 0%)
LABlab(92.4 -47.5 83.0)
LCHlch(92.4 95.6 119.8)
OKLCHoklch(0.918 0.227 127.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bafe2d on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#bafe2d on black: 17.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green99.6%
Blue17.6%

CMYK percentages

Cyan26.8%
Magenta0.0%
Yellow82.3%
Key (black)0.4%

Color previews

#bafe2d text on a black background

contrast 17.30:1

Card sample

#bafe2d text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 254, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 254, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bafe2d;
background: linear-gradient(135deg, #bafe2d, #2FFE2D);

Monochromatic scale

Palettes built from #bafe2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bafe2d in the Color Lab