Skip to content

#bafc2d

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

RGB
186, 252, 45
HSL
79°, 97%, 58%
CMYK
26, 0, 82, 1
Luminance
0.8025

Every format

HEX#bafc2d
RGBrgb(186, 252, 45)
HSLhsl(79, 97%, 58%)
CMYKcmyk(26%, 0%, 82%, 1%)
LABlab(91.8 -46.6 82.5)
LCHlch(91.8 94.7 119.5)
OKLCHoklch(0.914 0.225 127.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red72.9%
Green98.8%
Blue17.6%

CMYK percentages

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

Color previews

#bafc2d text on a black background

contrast 17.05:1

Card sample

#bafc2d text on a white background

contrast 1.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bafc2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bafc2d in the Color Lab