Skip to content

#ffda1f

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

RGB
255, 218, 31
HSL
50°, 100%, 56%
CMYK
0, 15, 88, 0
Luminance
0.7150

Every format

HEX#ffda1f
RGBrgb(255, 218, 31)
HSLhsl(50, 100%, 56%)
CMYKcmyk(0%, 15%, 88%, 0%)
LABlab(87.7 -3.1 84.0)
LCHlch(87.7 84.1 92.1)
OKLCHoklch(0.893 0.179 96.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffda1f on white: 1.37:1
AA ✗ fail · AA-large · AAA
Aa
#ffda1f on black: 15.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green85.5%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta14.5%
Yellow87.8%
Key (black)0.0%

Color previews

#ffda1f text on a black background

contrast 15.30:1

Card sample

#ffda1f text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffda1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffda1f in the Color Lab