Skip to content

#ffdb40

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

RGB
255, 219, 64
HSL
49°, 100%, 63%
CMYK
0, 14, 75, 0
Luminance
0.7229

Every format

HEX#ffdb40
RGBrgb(255, 219, 64)
HSLhsl(49, 100%, 63%)
CMYKcmyk(0%, 14%, 75%, 0%)
LABlab(88.1 -2.7 75.6)
LCHlch(88.1 75.7 92.0)
OKLCHoklch(0.897 0.166 95.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffdb40 on white: 1.36:1
AA ✗ fail · AA-large · AAA
Aa
#ffdb40 on black: 15.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green85.9%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta14.1%
Yellow74.9%
Key (black)0.0%

Color previews

#ffdb40 text on a black background

contrast 15.46:1

Card sample

#ffdb40 text on a white background

contrast 1.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffdb40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffdb40 in the Color Lab