Skip to content

#baf71d

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

RGB
186, 247, 29
HSL
77°, 93%, 54%
CMYK
25, 0, 88, 3
Luminance
0.7705

Every format

HEX#baf71d
RGBrgb(186, 247, 29)
HSLhsl(77, 93%, 54%)
CMYKcmyk(25%, 0%, 88%, 3%)
LABlab(90.3 -45.0 84.4)
LCHlch(90.3 95.6 118.1)
OKLCHoklch(0.902 0.224 125.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baf71d on white: 1.28:1
AA ✗ fail · AA-large · AAA
Aa
#baf71d on black: 16.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green96.9%
Blue11.4%

CMYK percentages

Cyan24.7%
Magenta0.0%
Yellow88.3%
Key (black)3.1%

Color previews

#baf71d text on a black background

contrast 16.41:1

Card sample

#baf71d text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 247, 29, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 247, 29, 0.45);
Border & gradient
Gradient panel
border: 3px solid #baf71d;
background: linear-gradient(135deg, #baf71d, #29F71D);

Monochromatic scale

Palettes built from #baf71d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baf71d in the Color Lab