Skip to content

#ffdf5b

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

RGB
255, 223, 91
HSL
48°, 100%, 68%
CMYK
0, 13, 64, 0
Luminance
0.7479

Every format

HEX#ffdf5b
RGBrgb(255, 223, 91)
HSLhsl(48, 100%, 68%)
CMYKcmyk(0%, 13%, 64%, 0%)
LABlab(89.3 -3.4 66.6)
LCHlch(89.3 66.7 92.9)
OKLCHoklch(0.907 0.152 95.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffdf5b on white: 1.32:1
AA ✗ fail · AA-large · AAA
Aa
#ffdf5b on black: 15.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green87.5%
Blue35.7%

CMYK percentages

Cyan0.0%
Magenta12.5%
Yellow64.3%
Key (black)0.0%

Color previews

#ffdf5b text on a black background

contrast 15.96:1

Card sample

#ffdf5b text on a white background

contrast 1.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffdf5b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffdf5b in the Color Lab