Skip to content

#b1ba21

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

RGB
177, 186, 33
HSL
64°, 70%, 43%
CMYK
5, 0, 82, 27
Luminance
0.4457

Every format

HEX#b1ba21
RGBrgb(177, 186, 33)
HSLhsl(64, 70%, 43%)
CMYKcmyk(5%, 0%, 82%, 27%)
LABlab(72.6 -20.3 68.5)
LCHlch(72.6 71.4 106.5)
OKLCHoklch(0.757 0.161 113.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b1ba21 on white: 2.12:1
AA ✗ fail · AA-large · AAA
Aa
#b1ba21 on black: 9.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan4.8%
Magenta0.0%
Yellow82.3%
Key (black)27.1%

Color previews

#b1ba21 text on a black background

contrast 9.91:1

Card sample

#b1ba21 text on a white background

contrast 2.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b1ba21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b1ba21 in the Color Lab