Skip to content

#b4bc21

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

RGB
180, 188, 33
HSL
63°, 70%, 43%
CMYK
4, 0, 82, 26
Luminance
0.4578

Every format

HEX#b4bc21
RGBrgb(180, 188, 33)
HSLhsl(63, 70%, 43%)
CMYKcmyk(4%, 0%, 82%, 26%)
LABlab(73.4 -20.0 69.3)
LCHlch(73.4 72.1 106.1)
OKLCHoklch(0.764 0.162 112.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b4bc21 on white: 2.07:1
AA ✗ fail · AA-large · AAA
Aa
#b4bc21 on black: 10.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.6%
Green73.7%
Blue12.9%

CMYK percentages

Cyan4.3%
Magenta0.0%
Yellow82.4%
Key (black)26.3%

Color previews

#b4bc21 text on a black background

contrast 10.16:1

Card sample

#b4bc21 text on a white background

contrast 2.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(180, 188, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(180, 188, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b4bc21;
background: linear-gradient(135deg, #b4bc21, #4DBC21);

Monochromatic scale

Palettes built from #b4bc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b4bc21 in the Color Lab