Skip to content

#fbc021

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

RGB
251, 192, 33
HSL
44°, 97%, 56%
CMYK
0, 24, 87, 2
Luminance
0.5832

Every format

HEX#fbc021
RGBrgb(251, 192, 33)
HSLhsl(44, 97%, 56%)
CMYKcmyk(0%, 24%, 87%, 2%)
LABlab(80.9 8.6 78.1)
LCHlch(80.9 78.6 83.7)
OKLCHoklch(0.839 0.166 85.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fbc021 on white: 1.66:1
AA ✗ fail · AA-large · AAA
Aa
#fbc021 on black: 12.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.4%
Green75.3%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta23.5%
Yellow86.9%
Key (black)1.6%

Color previews

#fbc021 text on a black background

contrast 12.66:1

Card sample

#fbc021 text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fbc021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fbc021 in the Color Lab