Skip to content

#b2cc7f

a balanced, soft green · cool · closest name: khaki

RGB
178, 204, 127
HSL
80°, 43%, 65%
CMYK
13, 0, 38, 20
Luminance
0.5418

Every format

HEX#b2cc7f
RGBrgb(178, 204, 127)
HSLhsl(80, 43%, 65%)
CMYKcmyk(13%, 0%, 38%, 20%)
LABlab(78.6 -21.5 35.5)
LCHlch(78.6 41.5 121.2)
OKLCHoklch(0.808 0.105 123.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b2cc7f on white: 1.77:1
AA ✗ fail · AA-large · AAA
Aa
#b2cc7f on black: 11.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green80.0%
Blue49.8%

CMYK percentages

Cyan12.7%
Magenta0.0%
Yellow37.7%
Key (black)20.0%

Color previews

#b2cc7f text on a black background

contrast 11.84:1

Card sample

#b2cc7f text on a white background

contrast 1.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 204, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 204, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2cc7f;
background: linear-gradient(135deg, #b2cc7f, #7FCC7F);

Monochromatic scale

Palettes built from #b2cc7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2cc7f in the Color Lab