Skip to content

#fbcc21

a balanced, electric yellow · cool · closest name: gold

RGB
251, 204, 33
HSL
47°, 97%, 56%
CMYK
0, 19, 87, 2
Luminance
0.6380

Every format

HEX#fbcc21
RGBrgb(251, 204, 33)
HSLhsl(47, 97%, 56%)
CMYKcmyk(0%, 19%, 87%, 2%)
LABlab(83.9 2.4 80.5)
LCHlch(83.9 80.5 88.3)
OKLCHoklch(0.862 0.170 91.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fbcc21 on white: 1.53:1
AA ✗ fail · AA-large · AAA
Aa
#fbcc21 on black: 13.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.4%
Green80.0%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta18.7%
Yellow86.9%
Key (black)1.6%

Color previews

#fbcc21 text on a black background

contrast 13.76:1

Card sample

#fbcc21 text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(251, 204, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(251, 204, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fbcc21;
background: linear-gradient(135deg, #fbcc21, #99FB21);

Monochromatic scale

Palettes built from #fbcc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fbcc21 in the Color Lab