Skip to content

#bafc2c

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

RGB
186, 252, 44
HSL
79°, 97%, 58%
CMYK
26, 0, 83, 1
Luminance
0.8024

Every format

HEX#bafc2c
RGBrgb(186, 252, 44)
HSLhsl(79, 97%, 58%)
CMYKcmyk(26%, 0%, 83%, 1%)
LABlab(91.8 -46.7 82.7)
LCHlch(91.8 94.9 119.4)
OKLCHoklch(0.913 0.225 127.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bafc2c on white: 1.23:1
AA ✗ fail · AA-large · AAA
Aa
#bafc2c on black: 17.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green98.8%
Blue17.3%

CMYK percentages

Cyan26.2%
Magenta0.0%
Yellow82.5%
Key (black)1.2%

Color previews

#bafc2c text on a black background

contrast 17.05:1

Card sample

#bafc2c text on a white background

contrast 1.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bafc2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bafc2c in the Color Lab