Skip to content

#fdf18c

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

RGB
253, 241, 140
HSL
54°, 97%, 77%
CMYK
0, 5, 45, 1
Luminance
0.8569

Every format

HEX#fdf18c
RGBrgb(253, 241, 140)
HSLhsl(54, 97%, 77%)
CMYKcmyk(0%, 5%, 45%, 1%)
LABlab(94.2 -9.4 50.0)
LCHlch(94.2 50.9 100.7)
OKLCHoklch(0.947 0.123 102.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#fdf18c text on a black background

contrast 18.14:1

Card sample

#fdf18c text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf18c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf18c in the Color Lab