Skip to content

#fdf314

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

RGB
253, 243, 20
HSL
57°, 98%, 54%
CMYK
0, 4, 92, 1
Luminance
0.8503

Every format

HEX#fdf314
RGBrgb(253, 243, 20)
HSLhsl(57, 98%, 54%)
CMYKcmyk(0%, 4%, 92%, 1%)
LABlab(93.9 -16.5 90.4)
LCHlch(93.9 91.9 100.3)
OKLCHoklch(0.942 0.199 106.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf314 on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#fdf314 on black: 18.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green95.3%
Blue7.8%

CMYK percentages

Cyan0.0%
Magenta4.0%
Yellow92.1%
Key (black)0.8%

Color previews

#fdf314 text on a black background

contrast 18.01:1

Card sample

#fdf314 text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(253, 243, 20, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(253, 243, 20, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fdf314;
background: linear-gradient(135deg, #fdf314, #6CFD14);

Monochromatic scale

Palettes built from #fdf314

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf314 in the Color Lab