Skip to content

#bafe2e

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

RGB
186, 254, 46
HSL
80°, 99%, 59%
CMYK
27, 0, 82, 0
Luminance
0.8152

Every format

HEX#bafe2e
RGBrgb(186, 254, 46)
HSLhsl(80, 99%, 59%)
CMYKcmyk(27%, 0%, 82%, 0%)
LABlab(92.4 -47.5 82.7)
LCHlch(92.4 95.4 119.8)
OKLCHoklch(0.918 0.227 127.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red72.9%
Green99.6%
Blue18.0%

CMYK percentages

Cyan26.8%
Magenta0.0%
Yellow81.9%
Key (black)0.4%

Color previews

#bafe2e text on a black background

contrast 17.30:1

Card sample

#bafe2e text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bafe2e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bafe2e in the Color Lab