Skip to content

#ffcd21

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

RGB
255, 205, 33
HSL
47°, 100%, 57%
CMYK
0, 20, 87, 0
Luminance
0.6503

Every format

HEX#ffcd21
RGBrgb(255, 205, 33)
HSLhsl(47, 100%, 57%)
CMYKcmyk(0%, 20%, 87%, 0%)
LABlab(84.5 3.6 81.1)
LCHlch(84.5 81.2 87.5)
OKLCHoklch(0.868 0.172 90.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green80.4%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta19.6%
Yellow87.1%
Key (black)0.0%

Color previews

#ffcd21 text on a black background

contrast 14.01:1

Card sample

#ffcd21 text on a white background

contrast 1.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcd21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcd21 in the Color Lab