Skip to content

#bab40f

a dark, electric yellow · cool · closest name: olive

RGB
186, 180, 15
HSL
58°, 85%, 39%
CMYK
0, 3, 92, 27
Luminance
0.4312

Every format

HEX#bab40f
RGBrgb(186, 180, 15)
HSLhsl(58, 85%, 39%)
CMYKcmyk(0%, 3%, 92%, 27%)
LABlab(71.6 -13.8 71.6)
LCHlch(71.6 72.9 100.9)
OKLCHoklch(0.751 0.159 107.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bab40f on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#bab40f on black: 9.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green70.6%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta3.2%
Yellow91.9%
Key (black)27.1%

Color previews

#bab40f text on a black background

contrast 9.62:1

Card sample

#bab40f text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 180, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 180, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bab40f;
background: linear-gradient(135deg, #bab40f, #4EBA0F);

Monochromatic scale

Palettes built from #bab40f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bab40f in the Color Lab