Skip to content

#baf040

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

RGB
186, 240, 64
HSL
78°, 85%, 60%
CMYK
23, 0, 73, 6
Luminance
0.7313

Every format

HEX#baf040
RGBrgb(186, 240, 64)
HSLhsl(78, 85%, 60%)
CMYKcmyk(23%, 0%, 73%, 6%)
LABlab(88.5 -40.6 74.2)
LCHlch(88.5 84.6 118.7)
OKLCHoklch(0.887 0.203 125.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red72.9%
Green94.1%
Blue25.1%

CMYK percentages

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

Color previews

#baf040 text on a black background

contrast 15.63:1

Card sample

#baf040 text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #baf040

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baf040 in the Color Lab