Skip to content

#baf2a2

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

RGB
186, 242, 162
HSL
102°, 76%, 79%
CMYK
23, 0, 33, 5
Luminance
0.7655

Every format

HEX#baf2a2
RGBrgb(186, 242, 162)
HSLhsl(102, 76%, 79%)
CMYKcmyk(23%, 0%, 33%, 5%)
LABlab(90.1 -32.0 33.0)
LCHlch(90.1 46.0 134.1)
OKLCHoklch(0.903 0.120 136.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baf2a2 on white: 1.29:1
AA ✗ fail · AA-large · AAA
Aa
#baf2a2 on black: 16.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green94.9%
Blue63.5%

CMYK percentages

Cyan23.1%
Magenta0.0%
Yellow33.1%
Key (black)5.1%

Color previews

#baf2a2 text on a black background

contrast 16.31:1

Card sample

#baf2a2 text on a white background

contrast 1.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #baf2a2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baf2a2 in the Color Lab