Skip to content

#fdf27c

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

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

Every format

HEX#fdf27c
RGBrgb(253, 242, 124)
HSLhsl(55, 97%, 74%)
CMYKcmyk(0%, 4%, 51%, 1%)
LABlab(94.3 -11.3 57.6)
LCHlch(94.3 58.7 101.1)
OKLCHoklch(0.947 0.140 103.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green94.9%
Blue48.6%

CMYK percentages

Cyan0.0%
Magenta4.3%
Yellow51.0%
Key (black)0.8%

Color previews

#fdf27c text on a black background

contrast 18.17:1

Card sample

#fdf27c text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf27c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf27c in the Color Lab