Skip to content

#bab02f

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

RGB
186, 176, 47
HSL
56°, 60%, 46%
CMYK
0, 5, 75, 27
Luminance
0.4170

Every format

HEX#bab02f
RGBrgb(186, 176, 47)
HSLhsl(56, 60%, 46%)
CMYKcmyk(0%, 5%, 75%, 27%)
LABlab(70.7 -10.8 62.9)
LCHlch(70.7 63.8 99.8)
OKLCHoklch(0.743 0.143 104.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bab02f on white: 2.25:1
AA ✗ fail · AA-large · AAA
Aa
#bab02f on black: 9.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green69.0%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta5.4%
Yellow74.7%
Key (black)27.1%

Color previews

#bab02f text on a black background

contrast 9.34:1

Card sample

#bab02f text on a white background

contrast 2.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 176, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 176, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bab02f;
background: linear-gradient(135deg, #bab02f, #67BA2F);

Monochromatic scale

Palettes built from #bab02f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bab02f in the Color Lab