Skip to content

#baf078

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

RGB
186, 240, 120
HSL
87°, 80%, 71%
CMYK
23, 0, 50, 6
Luminance
0.7412

Every format

HEX#baf078
RGBrgb(186, 240, 120)
HSLhsl(87, 80%, 71%)
CMYKcmyk(23%, 0%, 50%, 6%)
LABlab(89.0 -36.3 52.0)
LCHlch(89.0 63.5 124.9)
OKLCHoklch(0.892 0.160 129.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baf078 on white: 1.33:1
AA ✗ fail · AA-large · AAA
Aa
#baf078 on black: 15.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan22.5%
Magenta0.0%
Yellow50.0%
Key (black)5.9%

Color previews

#baf078 text on a black background

contrast 15.82:1

Card sample

#baf078 text on a white background

contrast 1.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #baf078

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baf078 in the Color Lab