Skip to content

#fdf28c

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

RGB
253, 242, 140
HSL
54°, 97%, 77%
CMYK
0, 4, 45, 1
Luminance
0.8628

Every format

HEX#fdf28c
RGBrgb(253, 242, 140)
HSLhsl(54, 97%, 77%)
CMYKcmyk(0%, 4%, 45%, 1%)
LABlab(94.4 -9.9 50.3)
LCHlch(94.4 51.3 101.1)
OKLCHoklch(0.949 0.124 103.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green94.9%
Blue54.9%

CMYK percentages

Cyan0.0%
Magenta4.3%
Yellow44.7%
Key (black)0.8%

Color previews

#fdf28c text on a black background

contrast 18.26:1

Card sample

#fdf28c text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf28c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf28c in the Color Lab