Skip to content

#fdf27d

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

RGB
253, 242, 125
HSL
55°, 97%, 74%
CMYK
0, 4, 51, 1
Luminance
0.8587

Every format

HEX#fdf27d
RGBrgb(253, 242, 125)
HSLhsl(55, 97%, 74%)
CMYKcmyk(0%, 4%, 51%, 1%)
LABlab(94.3 -11.2 57.2)
LCHlch(94.3 58.3 101.1)
OKLCHoklch(0.947 0.139 103.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green94.9%
Blue49.0%

CMYK percentages

Cyan0.0%
Magenta4.3%
Yellow50.6%
Key (black)0.8%

Color previews

#fdf27d text on a black background

contrast 18.17:1

Card sample

#fdf27d text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf27d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf27d in the Color Lab