Skip to content

#bafb16

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

RGB
186, 251, 22
HSL
77°, 97%, 54%
CMYK
26, 0, 91, 2
Luminance
0.7949

Every format

HEX#bafb16
RGBrgb(186, 251, 22)
HSLhsl(77, 97%, 54%)
CMYKcmyk(26%, 0%, 91%, 2%)
LABlab(91.5 -46.8 86.3)
LCHlch(91.5 98.1 118.5)
OKLCHoklch(0.911 0.230 126.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bafb16 on white: 1.24:1
AA ✗ fail · AA-large · AAA
Aa
#bafb16 on black: 16.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green98.4%
Blue8.6%

CMYK percentages

Cyan25.9%
Magenta0.0%
Yellow91.2%
Key (black)1.6%

Color previews

#bafb16 text on a black background

contrast 16.90:1

Card sample

#bafb16 text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 251, 22, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 251, 22, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bafb16;
background: linear-gradient(135deg, #bafb16, #21FB16);

Monochromatic scale

Palettes built from #bafb16

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bafb16 in the Color Lab