Skip to content

#fdf03b

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

RGB
253, 240, 59
HSL
56°, 98%, 61%
CMYK
0, 5, 77, 1
Luminance
0.8352

Every format

HEX#fdf03b
RGBrgb(253, 240, 59)
HSLhsl(56, 98%, 61%)
CMYKcmyk(0%, 5%, 77%, 1%)
LABlab(93.2 -14.1 81.8)
LCHlch(93.2 83.1 99.8)
OKLCHoklch(0.937 0.184 105.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf03b on white: 1.19:1
AA ✗ fail · AA-large · AAA
Aa
#fdf03b on black: 17.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green94.1%
Blue23.1%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow76.7%
Key (black)0.8%

Color previews

#fdf03b text on a black background

contrast 17.70:1

Card sample

#fdf03b text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(253, 240, 59, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(253, 240, 59, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fdf03b;
background: linear-gradient(135deg, #fdf03b, #89FD3B);

Monochromatic scale

Palettes built from #fdf03b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf03b in the Color Lab