Skip to content

#fdf980

a light, electric yellow · cool · closest name: khaki

RGB
253, 249, 128
HSL
58°, 97%, 75%
CMYK
0, 2, 49, 1
Luminance
0.9019

Every format

HEX#fdf980
RGBrgb(253, 249, 128)
HSLhsl(58, 97%, 75%)
CMYKcmyk(0%, 2%, 49%, 1%)
LABlab(96.1 -14.4 58.0)
LCHlch(96.1 59.7 104.0)
OKLCHoklch(0.961 0.143 107.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green97.6%
Blue50.2%

CMYK percentages

Cyan0.0%
Magenta1.6%
Yellow49.4%
Key (black)0.8%

Color previews

#fdf980 text on a black background

contrast 19.04:1

Card sample

#fdf980 text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(253, 249, 128, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(253, 249, 128, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fdf980;
background: linear-gradient(135deg, #fdf980, #AEFD80);

Monochromatic scale

Palettes built from #fdf980

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf980 in the Color Lab