Skip to content

#baf178

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

RGB
186, 241, 120
HSL
87°, 81%, 71%
CMYK
23, 0, 50, 6
Luminance
0.7471

Every format

HEX#baf178
RGBrgb(186, 241, 120)
HSLhsl(87, 81%, 71%)
CMYKcmyk(23%, 0%, 50%, 6%)
LABlab(89.3 -36.8 52.4)
LCHlch(89.3 64.0 125.1)
OKLCHoklch(0.895 0.162 129.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baf178 on white: 1.32:1
AA ✗ fail · AA-large · AAA
Aa
#baf178 on black: 15.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green94.5%
Blue47.1%

CMYK percentages

Cyan22.8%
Magenta0.0%
Yellow50.2%
Key (black)5.5%

Color previews

#baf178 text on a black background

contrast 15.94:1

Card sample

#baf178 text on a white background

contrast 1.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 241, 120, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 241, 120, 0.45);
Border & gradient
Gradient panel
border: 3px solid #baf178;
background: linear-gradient(135deg, #baf178, #78F187);

Monochromatic scale

Palettes built from #baf178

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baf178 in the Color Lab