Skip to content

#baf04f

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

RGB
186, 240, 79
HSL
80°, 84%, 63%
CMYK
23, 0, 67, 6
Luminance
0.7332

Every format

HEX#baf04f
RGBrgb(186, 240, 79)
HSLhsl(80, 84%, 63%)
CMYKcmyk(23%, 0%, 67%, 6%)
LABlab(88.6 -39.8 69.0)
LCHlch(88.6 79.7 120.0)
OKLCHoklch(0.888 0.194 126.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red72.9%
Green94.1%
Blue31.0%

CMYK percentages

Cyan22.5%
Magenta0.0%
Yellow67.1%
Key (black)5.9%

Color previews

#baf04f text on a black background

contrast 15.66:1

Card sample

#baf04f text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #baf04f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baf04f in the Color Lab