Skip to content

#bac331

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

RGB
186, 195, 49
HSL
64°, 60%, 48%
CMYK
5, 0, 75, 24
Luminance
0.4969

Every format

HEX#bac331
RGBrgb(186, 195, 49)
HSLhsl(64, 60%, 48%)
CMYKcmyk(5%, 0%, 75%, 24%)
LABlab(75.9 -20.3 67.1)
LCHlch(75.9 70.1 106.9)
OKLCHoklch(0.785 0.160 113.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bac331 on white: 1.92:1
AA ✗ fail · AA-large · AAA
Aa
#bac331 on black: 10.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green76.5%
Blue19.2%

CMYK percentages

Cyan4.6%
Magenta0.0%
Yellow74.9%
Key (black)23.5%

Color previews

#bac331 text on a black background

contrast 10.94:1

Card sample

#bac331 text on a white background

contrast 1.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(186, 195, 49, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 195, 49, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bac331;
background: linear-gradient(135deg, #bac331, #59C331);

Monochromatic scale

Palettes built from #bac331

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bac331 in the Color Lab