Skip to content

#fdf18e

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

RGB
253, 241, 142
HSL
54°, 97%, 78%
CMYK
0, 5, 44, 1
Luminance
0.8575

Every format

HEX#fdf18e
RGBrgb(253, 241, 142)
HSLhsl(54, 97%, 78%)
CMYKcmyk(0%, 5%, 44%, 1%)
LABlab(94.2 -9.2 49.1)
LCHlch(94.2 50.0 100.6)
OKLCHoklch(0.947 0.121 102.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green94.5%
Blue55.7%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow43.9%
Key (black)0.8%

Color previews

#fdf18e text on a black background

contrast 18.15:1

Card sample

#fdf18e text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf18e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf18e in the Color Lab