Skip to content

#baff2c

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

RGB
186, 255, 44
HSL
80°, 100%, 59%
CMYK
27, 0, 83, 0
Luminance
0.8214

Every format

HEX#baff2c
RGBrgb(186, 255, 44)
HSLhsl(80, 100%, 59%)
CMYKcmyk(27%, 0%, 83%, 0%)
LABlab(92.6 -47.9 83.4)
LCHlch(92.6 96.2 119.9)
OKLCHoklch(0.920 0.228 127.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red72.9%
Green100.0%
Blue17.3%

CMYK percentages

Cyan27.1%
Magenta0.0%
Yellow82.7%
Key (black)0.0%

Color previews

#baff2c text on a black background

contrast 17.43:1

Card sample

#baff2c text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #baff2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baff2c in the Color Lab