Skip to content

#baf80f

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

RGB
186, 248, 15
HSL
76°, 94%, 52%
CMYK
25, 0, 94, 3
Luminance
0.7761

Every format

HEX#baf80f
RGBrgb(186, 248, 15)
HSLhsl(76, 94%, 52%)
CMYKcmyk(25%, 0%, 94%, 3%)
LABlab(90.6 -45.6 86.3)
LCHlch(90.6 97.7 117.8)
OKLCHoklch(0.904 0.228 125.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baf80f on white: 1.27:1
AA ✗ fail · AA-large · AAA
Aa
#baf80f on black: 16.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green97.3%
Blue5.9%

CMYK percentages

Cyan25.0%
Magenta0.0%
Yellow94.0%
Key (black)2.7%

Color previews

#baf80f text on a black background

contrast 16.52:1

Card sample

#baf80f text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #baf80f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baf80f in the Color Lab