Skip to content

#bafa54

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

RGB
186, 250, 84
HSL
83°, 94%, 66%
CMYK
26, 0, 66, 2
Luminance
0.7945

Every format

HEX#bafa54
RGBrgb(186, 250, 84)
HSLhsl(83, 94%, 66%)
CMYKcmyk(26%, 0%, 66%, 2%)
LABlab(91.4 -43.8 70.1)
LCHlch(91.4 82.7 122.0)
OKLCHoklch(0.911 0.202 128.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bafa54 on white: 1.24:1
AA ✗ fail · AA-large · AAA
Aa
#bafa54 on black: 16.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green98.0%
Blue32.9%

CMYK percentages

Cyan25.6%
Magenta0.0%
Yellow66.4%
Key (black)2.0%

Color previews

#bafa54 text on a black background

contrast 16.89:1

Card sample

#bafa54 text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 250, 84, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 250, 84, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bafa54;
background: linear-gradient(135deg, #bafa54, #54FA5D);

Monochromatic scale

Palettes built from #bafa54

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bafa54 in the Color Lab