Skip to content

#baba2c

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

RGB
186, 186, 44
HSL
60°, 62%, 45%
CMYK
0, 0, 76, 27
Luminance
0.4574

Every format

HEX#baba2c
RGBrgb(186, 186, 44)
HSLhsl(60, 62%, 45%)
CMYKcmyk(0%, 0%, 76%, 27%)
LABlab(73.4 -16.1 66.3)
LCHlch(73.4 68.3 103.6)
OKLCHoklch(0.765 0.154 109.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baba2c on white: 2.07:1
AA ✗ fail · AA-large · AAA
Aa
#baba2c on black: 10.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green72.9%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow76.3%
Key (black)27.1%

Color previews

#baba2c text on a black background

contrast 10.15:1

Card sample

#baba2c text on a white background

contrast 2.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #baba2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baba2c in the Color Lab