Skip to content

#fdfc1f

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

RGB
253, 252, 31
HSL
60°, 98%, 56%
CMYK
0, 0, 88, 1
Luminance
0.9060

Every format

HEX#fdfc1f
RGBrgb(253, 252, 31)
HSLhsl(60, 98%, 56%)
CMYKcmyk(0%, 0%, 88%, 1%)
LABlab(96.3 -20.6 90.7)
LCHlch(96.3 93.0 102.8)
OKLCHoklch(0.961 0.204 109.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdfc1f on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#fdfc1f on black: 19.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green98.8%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow87.7%
Key (black)0.8%

Color previews

#fdfc1f text on a black background

contrast 19.12:1

Card sample

#fdfc1f text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdfc1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdfc1f in the Color Lab