Skip to content

#bafd0f

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

RGB
186, 253, 15
HSL
77°, 98%, 53%
CMYK
27, 0, 94, 1
Luminance
0.8072

Every format

HEX#bafd0f
RGBrgb(186, 253, 15)
HSLhsl(77, 98%, 53%)
CMYKcmyk(27%, 0%, 94%, 1%)
LABlab(92.0 -47.7 87.5)
LCHlch(92.0 99.6 118.6)
OKLCHoklch(0.915 0.233 126.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red72.9%
Green99.2%
Blue5.9%

CMYK percentages

Cyan26.5%
Magenta0.0%
Yellow94.1%
Key (black)0.8%

Color previews

#bafd0f text on a black background

contrast 17.14:1

Card sample

#bafd0f text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bafd0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bafd0f in the Color Lab