Skip to content

#ffde21

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

RGB
255, 222, 33
HSL
51°, 100%, 57%
CMYK
0, 13, 87, 0
Luminance
0.7361

Every format

HEX#ffde21
RGBrgb(255, 222, 33)
HSLhsl(51, 100%, 57%)
CMYKcmyk(0%, 13%, 87%, 0%)
LABlab(88.7 -5.1 84.5)
LCHlch(88.7 84.6 93.4)
OKLCHoklch(0.901 0.181 97.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffde21 on white: 1.34:1
AA ✗ fail · AA-large · AAA
Aa
#ffde21 on black: 15.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green87.1%
Blue12.9%

CMYK percentages

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

Color previews

#ffde21 text on a black background

contrast 15.72:1

Card sample

#ffde21 text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffde21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffde21 in the Color Lab