Skip to content

#baf52c

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

RGB
186, 245, 44
HSL
78°, 91%, 57%
CMYK
24, 0, 82, 4
Luminance
0.7593

Every format

HEX#baf52c
RGBrgb(186, 245, 44)
HSLhsl(78, 91%, 57%)
CMYKcmyk(24%, 0%, 82%, 4%)
LABlab(89.8 -43.7 81.0)
LCHlch(89.8 92.0 118.3)
OKLCHoklch(0.897 0.217 125.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baf52c on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#baf52c on black: 16.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green96.1%
Blue17.3%

CMYK percentages

Cyan24.1%
Magenta0.0%
Yellow82.0%
Key (black)3.9%

Color previews

#baf52c text on a black background

contrast 16.19:1

Card sample

#baf52c text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 245, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 245, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #baf52c;
background: linear-gradient(135deg, #baf52c, #34F52C);

Monochromatic scale

Palettes built from #baf52c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baf52c in the Color Lab