Skip to content

#fdf298

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

RGB
253, 242, 152
HSL
54°, 96%, 79%
CMYK
0, 4, 40, 1
Luminance
0.8665

Every format

HEX#fdf298
RGBrgb(253, 242, 152)
HSLhsl(54, 96%, 79%)
CMYKcmyk(0%, 4%, 40%, 1%)
LABlab(94.6 -8.7 44.7)
LCHlch(94.6 45.6 101.0)
OKLCHoklch(0.950 0.112 102.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green94.9%
Blue59.6%

CMYK percentages

Cyan0.0%
Magenta4.3%
Yellow39.9%
Key (black)0.8%

Color previews

#fdf298 text on a black background

contrast 18.33:1

Card sample

#fdf298 text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf298

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf298 in the Color Lab