Skip to content

#babf2c

a balanced, vivid yellow · cool · closest name: olive

RGB
186, 191, 44
HSL
62°, 63%, 46%
CMYK
3, 0, 77, 25
Luminance
0.4788

Every format

HEX#babf2c
RGBrgb(186, 191, 44)
HSLhsl(62, 63%, 46%)
CMYKcmyk(3%, 0%, 77%, 25%)
LABlab(74.8 -18.6 67.6)
LCHlch(74.8 70.1 105.4)
OKLCHoklch(0.776 0.159 111.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#babf2c on white: 1.99:1
AA ✗ fail · AA-large · AAA
Aa
#babf2c on black: 10.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green74.9%
Blue17.3%

CMYK percentages

Cyan2.6%
Magenta0.0%
Yellow77.0%
Key (black)25.1%

Color previews

#babf2c text on a black background

contrast 10.58:1

Card sample

#babf2c text on a white background

contrast 1.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 191, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 191, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #babf2c;
background: linear-gradient(135deg, #babf2c, #58BF2C);

Monochromatic scale

Palettes built from #babf2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #babf2c in the Color Lab