Skip to content

#bafc0f

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

RGB
186, 252, 15
HSL
77°, 98%, 52%
CMYK
26, 0, 94, 1
Luminance
0.8009

Every format

HEX#bafc0f
RGBrgb(186, 252, 15)
HSLhsl(77, 98%, 52%)
CMYKcmyk(26%, 0%, 94%, 1%)
LABlab(91.7 -47.3 87.2)
LCHlch(91.7 99.2 118.5)
OKLCHoklch(0.913 0.232 126.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red72.9%
Green98.8%
Blue5.9%

CMYK percentages

Cyan26.2%
Magenta0.0%
Yellow94.0%
Key (black)1.2%

Color previews

#bafc0f text on a black background

contrast 17.02:1

Card sample

#bafc0f text on a white background

contrast 1.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bafc0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bafc0f in the Color Lab