Skip to content

#fdf28f

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

RGB
253, 242, 143
HSL
54°, 97%, 78%
CMYK
0, 4, 44, 1
Luminance
0.8637

Every format

HEX#fdf28f
RGBrgb(253, 242, 143)
HSLhsl(54, 97%, 78%)
CMYKcmyk(0%, 4%, 44%, 1%)
LABlab(94.5 -9.6 48.9)
LCHlch(94.5 49.9 101.1)
OKLCHoklch(0.949 0.121 102.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf28f on white: 1.15:1
AA ✗ fail · AA-large · AAA
Aa
#fdf28f on black: 18.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green94.9%
Blue56.1%

CMYK percentages

Cyan0.0%
Magenta4.3%
Yellow43.5%
Key (black)0.8%

Color previews

#fdf28f text on a black background

contrast 18.27:1

Card sample

#fdf28f text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf28f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf28f in the Color Lab