Skip to content

#bafba1

a light, electric green · cool · closest name: khaki

RGB
186, 251, 161
HSL
103°, 92%, 81%
CMYK
26, 0, 36, 2
Luminance
0.8201

Every format

HEX#bafba1
RGBrgb(186, 251, 161)
HSLhsl(103, 92%, 81%)
CMYKcmyk(26%, 0%, 36%, 2%)
LABlab(92.6 -36.3 36.8)
LCHlch(92.6 51.7 134.6)
OKLCHoklch(0.923 0.135 137.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bafba1 on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#bafba1 on black: 17.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green98.4%
Blue63.1%

CMYK percentages

Cyan25.9%
Magenta0.0%
Yellow35.9%
Key (black)1.6%

Color previews

#bafba1 text on a black background

contrast 17.40:1

Card sample

#bafba1 text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bafba1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bafba1 in the Color Lab