Skip to content

#bc9d1f

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

RGB
188, 157, 31
HSL
48°, 72%, 43%
CMYK
0, 17, 84, 26
Luminance
0.3490

Every format

HEX#bc9d1f
RGBrgb(188, 157, 31)
HSLhsl(48, 72%, 43%)
CMYKcmyk(0%, 17%, 84%, 26%)
LABlab(65.7 -0.5 63.5)
LCHlch(65.7 63.5 90.4)
OKLCHoklch(0.704 0.136 93.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#bc9d1f on white: 2.63:1
AA ✗ fail · AA-large · AAA
Aa
#bc9d1f on black: 7.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red73.7%
Green61.6%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta16.5%
Yellow83.5%
Key (black)26.3%

Color previews

#bc9d1f text on a black background

contrast 7.98:1

Card sample

#bc9d1f text on a white background

contrast 2.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(188, 157, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(188, 157, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #bc9d1f;
background: linear-gradient(135deg, #bc9d1f, #72BC1F);

Monochromatic scale

Palettes built from #bc9d1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #bc9d1f in the Color Lab