Skip to content

#fdf291

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

RGB
253, 242, 145
HSL
54°, 96%, 78%
CMYK
0, 4, 43, 1
Luminance
0.8643

Every format

HEX#fdf291
RGBrgb(253, 242, 145)
HSLhsl(54, 96%, 78%)
CMYKcmyk(0%, 4%, 43%, 1%)
LABlab(94.5 -9.4 48.0)
LCHlch(94.5 48.9 101.1)
OKLCHoklch(0.949 0.119 102.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#fdf291 text on a black background

contrast 18.29:1

Card sample

#fdf291 text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf291

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf291 in the Color Lab