Skip to content

#fdf09c

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

RGB
253, 240, 156
HSL
52°, 96%, 80%
CMYK
0, 5, 38, 1
Luminance
0.8560

Every format

HEX#fdf09c
RGBrgb(253, 240, 156)
HSLhsl(52, 96%, 80%)
CMYKcmyk(0%, 5%, 38%, 1%)
LABlab(94.1 -7.3 42.2)
LCHlch(94.1 42.8 99.8)
OKLCHoklch(0.947 0.105 100.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf09c on white: 1.16:1
AA ✗ fail · AA-large · AAA
Aa
#fdf09c on black: 18.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green94.1%
Blue61.2%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow38.3%
Key (black)0.8%

Color previews

#fdf09c text on a black background

contrast 18.12:1

Card sample

#fdf09c text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf09c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf09c in the Color Lab