Skip to content

#bafd2c

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

RGB
186, 253, 44
HSL
79°, 98%, 58%
CMYK
27, 0, 83, 1
Luminance
0.8087

Every format

HEX#bafd2c
RGBrgb(186, 253, 44)
HSLhsl(79, 98%, 58%)
CMYKcmyk(27%, 0%, 83%, 1%)
LABlab(92.1 -47.1 82.9)
LCHlch(92.1 95.4 119.6)
OKLCHoklch(0.916 0.226 127.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bafd2c on white: 1.22:1
AA ✗ fail · AA-large · AAA
Aa
#bafd2c on black: 17.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green99.2%
Blue17.3%

CMYK percentages

Cyan26.5%
Magenta0.0%
Yellow82.6%
Key (black)0.8%

Color previews

#bafd2c text on a black background

contrast 17.17:1

Card sample

#bafd2c text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bafd2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bafd2c in the Color Lab