Skip to content

#baac28

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

RGB
186, 172, 40
HSL
54°, 65%, 44%
CMYK
0, 8, 79, 27
Luminance
0.4010

Every format

HEX#baac28
RGBrgb(186, 172, 40)
HSLhsl(54, 65%, 44%)
CMYKcmyk(0%, 8%, 79%, 27%)
LABlab(69.5 -9.0 64.1)
LCHlch(69.5 64.8 98.0)
OKLCHoklch(0.734 0.143 103.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#baac28 on white: 2.33:1
AA ✗ fail · AA-large · AAA
Aa
#baac28 on black: 9.02:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green67.5%
Blue15.7%

CMYK percentages

Cyan0.0%
Magenta7.5%
Yellow78.5%
Key (black)27.1%

Color previews

#baac28 text on a black background

contrast 9.02:1

Card sample

#baac28 text on a white background

contrast 2.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #baac28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #baac28 in the Color Lab