Skip to content

#fdf30f

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

RGB
253, 243, 15
HSL
58°, 98%, 53%
CMYK
0, 4, 94, 1
Luminance
0.8502

Every format

HEX#fdf30f
RGBrgb(253, 243, 15)
HSLhsl(58, 98%, 53%)
CMYKcmyk(0%, 4%, 94%, 1%)
LABlab(93.9 -16.5 90.9)
LCHlch(93.9 92.4 100.3)
OKLCHoklch(0.942 0.200 106.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green95.3%
Blue5.9%

CMYK percentages

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

Color previews

#fdf30f text on a black background

contrast 18.00:1

Card sample

#fdf30f text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf30f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf30f in the Color Lab