Skip to content

#baf404

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

RGB
186, 244, 4
HSL
75°, 97%, 49%
CMYK
24, 0, 98, 4
Luminance
0.7515

Every format

HEX#baf404
RGBrgb(186, 244, 4)
HSLhsl(75, 97%, 49%)
CMYKcmyk(24%, 0%, 98%, 4%)
LABlab(89.5 -44.0 86.3)
LCHlch(89.5 96.9 117.0)
OKLCHoklch(0.894 0.225 125.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baf404 on white: 1.31:1
AA ✗ fail · AA-large · AAA
Aa
#baf404 on black: 16.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green95.7%
Blue1.6%

CMYK percentages

Cyan23.8%
Magenta0.0%
Yellow98.4%
Key (black)4.3%

Color previews

#baf404 text on a black background

contrast 16.03:1

Card sample

#baf404 text on a white background

contrast 1.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #baf404

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baf404 in the Color Lab