Skip to content

#ffdf21

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

RGB
255, 223, 33
HSL
51°, 100%, 57%
CMYK
0, 13, 87, 0
Luminance
0.7415

Every format

HEX#ffdf21
RGBrgb(255, 223, 33)
HSLhsl(51, 100%, 57%)
CMYKcmyk(0%, 13%, 87%, 0%)
LABlab(89.0 -5.6 84.7)
LCHlch(89.0 84.8 93.8)
OKLCHoklch(0.903 0.181 98.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffdf21 on white: 1.33:1
AA ✗ fail · AA-large · AAA
Aa
#ffdf21 on black: 15.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green87.5%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta12.5%
Yellow87.1%
Key (black)0.0%

Color previews

#ffdf21 text on a black background

contrast 15.83:1

Card sample

#ffdf21 text on a white background

contrast 1.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffdf21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffdf21 in the Color Lab