Skip to content

#babc4f

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

RGB
186, 188, 79
HSL
61°, 45%, 52%
CMYK
1, 0, 58, 26
Luminance
0.4697

Every format

HEX#babc4f
RGBrgb(186, 188, 79)
HSLhsl(61, 45%, 52%)
CMYKcmyk(1%, 0%, 58%, 26%)
LABlab(74.2 -15.1 53.6)
LCHlch(74.2 55.7 105.7)
OKLCHoklch(0.772 0.132 110.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#babc4f on white: 2.02:1
AA ✗ fail · AA-large · AAA
Aa
#babc4f on black: 10.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green73.7%
Blue31.0%

CMYK percentages

Cyan1.1%
Magenta0.0%
Yellow58.0%
Key (black)26.3%

Color previews

#babc4f text on a black background

contrast 10.39:1

Card sample

#babc4f text on a white background

contrast 2.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #babc4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #babc4f in the Color Lab