Skip to content

#bbab2d

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

RGB
187, 171, 45
HSL
53°, 61%, 46%
CMYK
0, 9, 76, 27
Luminance
0.3988

Every format

HEX#bbab2d
RGBrgb(187, 171, 45)
HSLhsl(53, 61%, 46%)
CMYKcmyk(0%, 9%, 76%, 27%)
LABlab(69.4 -7.8 62.4)
LCHlch(69.4 62.9 97.2)
OKLCHoklch(0.733 0.140 101.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bbab2d on white: 2.34:1
AA ✗ fail · AA-large · AAA
Aa
#bbab2d on black: 8.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red73.3%
Green67.1%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta8.6%
Yellow75.9%
Key (black)26.7%

Color previews

#bbab2d text on a black background

contrast 8.98:1

Card sample

#bbab2d text on a white background

contrast 2.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(187, 171, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(187, 171, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bbab2d;
background: linear-gradient(135deg, #bbab2d, #6CBB2D);

Monochromatic scale

Palettes built from #bbab2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bbab2d in the Color Lab