Skip to content

#ffcd40

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

RGB
255, 205, 64
HSL
44°, 100%, 63%
CMYK
0, 20, 75, 0
Luminance
0.6529

Every format

HEX#ffcd40
RGBrgb(255, 205, 64)
HSLhsl(44, 100%, 63%)
CMYKcmyk(0%, 20%, 75%, 0%)
LABlab(84.6 4.5 72.4)
LCHlch(84.6 72.5 86.5)
OKLCHoklch(0.869 0.159 88.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green80.4%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta19.6%
Yellow74.9%
Key (black)0.0%

Color previews

#ffcd40 text on a black background

contrast 14.06:1

Card sample

#ffcd40 text on a white background

contrast 1.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcd40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcd40 in the Color Lab