Skip to content

#fdf27b

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

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

Every format

HEX#fdf27b
RGBrgb(253, 242, 123)
HSLhsl(55, 97%, 74%)
CMYKcmyk(0%, 4%, 51%, 1%)
LABlab(94.2 -11.4 58.1)
LCHlch(94.2 59.2 101.1)
OKLCHoklch(0.946 0.141 104.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#fdf27b text on a black background

contrast 18.16:1

Card sample

#fdf27b text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf27b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf27b in the Color Lab