Skip to content

#b4cb21

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

RGB
180, 203, 33
HSL
68°, 72%, 46%
CMYK
11, 0, 84, 20
Luminance
0.5252

Every format

HEX#b4cb21
RGBrgb(180, 203, 33)
HSLhsl(68, 72%, 46%)
CMYKcmyk(11%, 0%, 84%, 20%)
LABlab(77.6 -27.3 72.8)
LCHlch(77.6 77.8 110.6)
OKLCHoklch(0.797 0.178 117.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b4cb21 on white: 1.83:1
AA ✗ fail · AA-large · AAA
Aa
#b4cb21 on black: 11.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red70.6%
Green79.6%
Blue12.9%

CMYK percentages

Cyan11.3%
Magenta0.0%
Yellow83.7%
Key (black)20.4%

Color previews

#b4cb21 text on a black background

contrast 11.50:1

Card sample

#b4cb21 text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b4cb21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b4cb21 in the Color Lab