Skip to content

#ffcb21

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

RGB
255, 203, 33
HSL
46°, 100%, 57%
CMYK
0, 20, 87, 0
Luminance
0.6408

Every format

HEX#ffcb21
RGBrgb(255, 203, 33)
HSLhsl(46, 100%, 57%)
CMYKcmyk(0%, 20%, 87%, 0%)
LABlab(84.0 4.6 80.7)
LCHlch(84.0 80.9 86.8)
OKLCHoklch(0.864 0.171 89.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffcb21 on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#ffcb21 on black: 13.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green79.6%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta20.4%
Yellow87.1%
Key (black)0.0%

Color previews

#ffcb21 text on a black background

contrast 13.82:1

Card sample

#ffcb21 text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcb21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcb21 in the Color Lab