Skip to content

#fbce2f

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

RGB
251, 206, 47
HSL
47°, 96%, 58%
CMYK
0, 18, 81, 2
Luminance
0.6486

Every format

HEX#fbce2f
RGBrgb(251, 206, 47)
HSLhsl(47, 96%, 58%)
CMYKcmyk(0%, 18%, 81%, 2%)
LABlab(84.4 1.7 77.4)
LCHlch(84.4 77.5 88.7)
OKLCHoklch(0.866 0.166 91.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fbce2f on white: 1.50:1
AA ✗ fail · AA-large · AAA
Aa
#fbce2f on black: 13.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.4%
Green80.8%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta17.9%
Yellow81.3%
Key (black)1.6%

Color previews

#fbce2f text on a black background

contrast 13.97:1

Card sample

#fbce2f text on a white background

contrast 1.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fbce2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fbce2f in the Color Lab