Skip to content

#ffcd56

a light, electric yellow · warm · closest name: gold

RGB
255, 205, 86
HSL
42°, 100%, 67%
CMYK
0, 20, 66, 0
Luminance
0.6559

Every format

HEX#ffcd56
RGBrgb(255, 205, 86)
HSLhsl(42, 100%, 67%)
CMYKcmyk(0%, 20%, 66%, 0%)
LABlab(84.8 5.5 63.9)
LCHlch(84.8 64.1 85.1)
OKLCHoklch(0.871 0.145 85.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffcd56 on white: 1.49:1
AA ✗ fail · AA-large · AAA
Aa
#ffcd56 on black: 14.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green80.4%
Blue33.7%

CMYK percentages

Cyan0.0%
Magenta19.6%
Yellow66.3%
Key (black)0.0%

Color previews

#ffcd56 text on a black background

contrast 14.12:1

Card sample

#ffcd56 text on a white background

contrast 1.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcd56

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcd56 in the Color Lab