Skip to content

#bfac28

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

RGB
191, 172, 40
HSL
53°, 65%, 45%
CMYK
0, 10, 79, 25
Luminance
0.4073

Every format

HEX#bfac28
RGBrgb(191, 172, 40)
HSLhsl(53, 65%, 45%)
CMYKcmyk(0%, 10%, 79%, 25%)
LABlab(70.0 -6.8 64.7)
LCHlch(70.0 65.1 96.0)
OKLCHoklch(0.739 0.143 100.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bfac28 on white: 2.30:1
AA ✗ fail · AA-large · AAA
Aa
#bfac28 on black: 9.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red74.9%
Green67.5%
Blue15.7%

CMYK percentages

Cyan0.0%
Magenta9.9%
Yellow79.1%
Key (black)25.1%

Color previews

#bfac28 text on a black background

contrast 9.15:1

Card sample

#bfac28 text on a white background

contrast 2.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #bfac28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bfac28 in the Color Lab