Skip to content

#babc5f

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

RGB
186, 188, 95
HSL
61°, 41%, 56%
CMYK
1, 0, 50, 26
Luminance
0.4723

Every format

HEX#babc5f
RGBrgb(186, 188, 95)
HSLhsl(61, 41%, 56%)
CMYKcmyk(1%, 0%, 50%, 26%)
LABlab(74.3 -13.8 46.4)
LCHlch(74.3 48.4 106.5)
OKLCHoklch(0.774 0.117 109.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#babc5f on white: 2.01:1
AA ✗ fail · AA-large · AAA
Aa
#babc5f on black: 10.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green73.7%
Blue37.3%

CMYK percentages

Cyan1.1%
Magenta0.0%
Yellow49.5%
Key (black)26.3%

Color previews

#babc5f text on a black background

contrast 10.45:1

Card sample

#babc5f text on a white background

contrast 2.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 188, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 188, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #babc5f;
background: linear-gradient(135deg, #babc5f, #7CBC5F);

Monochromatic scale

Palettes built from #babc5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #babc5f in the Color Lab