Skip to content

#ffcd22

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

RGB
255, 205, 34
HSL
46°, 100%, 57%
CMYK
0, 20, 87, 0
Luminance
0.6504

Every format

HEX#ffcd22
RGBrgb(255, 205, 34)
HSLhsl(46, 100%, 57%)
CMYKcmyk(0%, 20%, 87%, 0%)
LABlab(84.5 3.6 80.9)
LCHlch(84.5 81.0 87.5)
OKLCHoklch(0.868 0.171 90.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green80.4%
Blue13.3%

CMYK percentages

Cyan0.0%
Magenta19.6%
Yellow86.7%
Key (black)0.0%

Color previews

#ffcd22 text on a black background

contrast 14.01:1

Card sample

#ffcd22 text on a white background

contrast 1.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcd22

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcd22 in the Color Lab