Skip to content

#bafd9d

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

RGB
186, 253, 157
HSL
102°, 96%, 80%
CMYK
27, 0, 38, 1
Luminance
0.8312

Every format

HEX#bafd9d
RGBrgb(186, 253, 157)
HSLhsl(102, 96%, 80%)
CMYKcmyk(27%, 0%, 38%, 1%)
LABlab(93.1 -37.8 39.4)
LCHlch(93.1 54.6 133.8)
OKLCHoklch(0.927 0.142 136.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bafd9d on white: 1.19:1
AA ✗ fail · AA-large · AAA
Aa
#bafd9d on black: 17.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green99.2%
Blue61.6%

CMYK percentages

Cyan26.5%
Magenta0.0%
Yellow37.9%
Key (black)0.8%

Color previews

#bafd9d text on a black background

contrast 17.62:1

Card sample

#bafd9d text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 253, 157, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 253, 157, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bafd9d;
background: linear-gradient(135deg, #bafd9d, #9DFDC0);

Monochromatic scale

Palettes built from #bafd9d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bafd9d in the Color Lab