Skip to content

#baf04c

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

RGB
186, 240, 76
HSL
80°, 85%, 62%
CMYK
23, 0, 68, 6
Luminance
0.7328

Every format

HEX#baf04c
RGBrgb(186, 240, 76)
HSLhsl(80, 85%, 62%)
CMYKcmyk(23%, 0%, 68%, 6%)
LABlab(88.6 -40.0 70.1)
LCHlch(88.6 80.7 119.7)
OKLCHoklch(0.888 0.195 126.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baf04c on white: 1.34:1
AA ✗ fail · AA-large · AAA
Aa
#baf04c on black: 15.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green94.1%
Blue29.8%

CMYK percentages

Cyan22.5%
Magenta0.0%
Yellow68.3%
Key (black)5.9%

Color previews

#baf04c text on a black background

contrast 15.66:1

Card sample

#baf04c text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 240, 76, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 240, 76, 0.45);
Border & gradient
Gradient panel
border: 3px solid #baf04c;
background: linear-gradient(135deg, #baf04c, #4DF04C);

Monochromatic scale

Palettes built from #baf04c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baf04c in the Color Lab