Skip to content

#b1b821

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

RGB
177, 184, 33
HSL
63°, 70%, 43%
CMYK
4, 0, 82, 28
Luminance
0.4374

Every format

HEX#b1b821
RGBrgb(177, 184, 33)
HSLhsl(63, 70%, 43%)
CMYKcmyk(4%, 0%, 82%, 28%)
LABlab(72.0 -19.3 68.0)
LCHlch(72.0 70.7 105.8)
OKLCHoklch(0.752 0.159 112.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b1b821 on white: 2.15:1
AA ✗ fail · AA-large · AAA
Aa
#b1b821 on black: 9.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.4%
Green72.2%
Blue12.9%

CMYK percentages

Cyan3.8%
Magenta0.0%
Yellow82.1%
Key (black)27.8%

Color previews

#b1b821 text on a black background

contrast 9.75:1

Card sample

#b1b821 text on a white background

contrast 2.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b1b821

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b1b821 in the Color Lab