Skip to content

#baff40

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

RGB
186, 255, 64
HSL
82°, 100%, 63%
CMYK
27, 0, 75, 0
Luminance
0.8233

Every format

HEX#baff40
RGBrgb(186, 255, 64)
HSLhsl(82, 100%, 63%)
CMYKcmyk(27%, 0%, 75%, 0%)
LABlab(92.7 -47.1 78.2)
LCHlch(92.7 91.3 121.1)
OKLCHoklch(0.921 0.220 128.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baff40 on white: 1.20:1
AA ✗ fail · AA-large · AAA
Aa
#baff40 on black: 17.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green100.0%
Blue25.1%

CMYK percentages

Cyan27.1%
Magenta0.0%
Yellow74.9%
Key (black)0.0%

Color previews

#baff40 text on a black background

contrast 17.47:1

Card sample

#baff40 text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 255, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 255, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #baff40;
background: linear-gradient(135deg, #baff40, #40FF45);

Monochromatic scale

Palettes built from #baff40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baff40 in the Color Lab