Skip to content

#baf921

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

RGB
186, 249, 33
HSL
78°, 95%, 55%
CMYK
25, 0, 87, 2
Luminance
0.7830

Every format

HEX#baf921
RGBrgb(186, 249, 33)
HSLhsl(78, 95%, 55%)
CMYKcmyk(25%, 0%, 87%, 2%)
LABlab(90.9 -45.7 84.2)
LCHlch(90.9 95.8 118.5)
OKLCHoklch(0.906 0.225 126.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baf921 on white: 1.26:1
AA ✗ fail · AA-large · AAA
Aa
#baf921 on black: 16.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green97.6%
Blue12.9%

CMYK percentages

Cyan25.3%
Magenta0.0%
Yellow86.7%
Key (black)2.4%

Color previews

#baf921 text on a black background

contrast 16.66:1

Card sample

#baf921 text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 249, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 249, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #baf921;
background: linear-gradient(135deg, #baf921, #2AF921);

Monochromatic scale

Palettes built from #baf921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baf921 in the Color Lab