Skip to content

#fdf27f

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

RGB
253, 242, 127
HSL
55°, 97%, 75%
CMYK
0, 4, 50, 1
Luminance
0.8592

Every format

HEX#fdf27f
RGBrgb(253, 242, 127)
HSLhsl(55, 97%, 75%)
CMYKcmyk(0%, 4%, 50%, 1%)
LABlab(94.3 -11.1 56.3)
LCHlch(94.3 57.4 101.1)
OKLCHoklch(0.947 0.137 103.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green94.9%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta4.3%
Yellow49.8%
Key (black)0.8%

Color previews

#fdf27f text on a black background

contrast 18.18:1

Card sample

#fdf27f text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf27f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf27f in the Color Lab