Skip to content

#fdf299

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

RGB
253, 242, 153
HSL
53°, 96%, 80%
CMYK
0, 4, 40, 1
Luminance
0.8669

Every format

HEX#fdf299
RGBrgb(253, 242, 153)
HSLhsl(53, 96%, 80%)
CMYKcmyk(0%, 4%, 40%, 1%)
LABlab(94.6 -8.6 44.3)
LCHlch(94.6 45.1 101.0)
OKLCHoklch(0.951 0.111 102.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green94.9%
Blue60.0%

CMYK percentages

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

Color previews

#fdf299 text on a black background

contrast 18.34:1

Card sample

#fdf299 text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf299

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf299 in the Color Lab