Skip to content

#babf39

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

RGB
186, 191, 57
HSL
62°, 54%, 49%
CMYK
3, 0, 70, 25
Luminance
0.4800

Every format

HEX#babf39
RGBrgb(186, 191, 57)
HSLhsl(62, 54%, 49%)
CMYKcmyk(3%, 0%, 70%, 25%)
LABlab(74.8 -18.0 63.3)
LCHlch(74.8 65.8 105.8)
OKLCHoklch(0.777 0.151 111.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#babf39 on white: 1.98:1
AA ✗ fail · AA-large · AAA
Aa
#babf39 on black: 10.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green74.9%
Blue22.4%

CMYK percentages

Cyan2.6%
Magenta0.0%
Yellow70.2%
Key (black)25.1%

Color previews

#babf39 text on a black background

contrast 10.60:1

Card sample

#babf39 text on a white background

contrast 1.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #babf39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #babf39 in the Color Lab