Skip to content

#fdef0f

a balanced, electric yellow · cool · closest name: yellow

RGB
253, 239, 15
HSL
57°, 98%, 53%
CMYK
0, 6, 94, 1
Luminance
0.8265

Every format

HEX#fdef0f
RGBrgb(253, 239, 15)
HSLhsl(57, 98%, 53%)
CMYKcmyk(0%, 6%, 94%, 1%)
LABlab(92.9 -14.6 90.1)
LCHlch(92.9 91.3 99.2)
OKLCHoklch(0.933 0.197 105.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdef0f on white: 1.20:1
AA ✗ fail · AA-large · AAA
Aa
#fdef0f on black: 17.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green93.7%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow94.1%
Key (black)0.8%

Color previews

#fdef0f text on a black background

contrast 17.53:1

Card sample

#fdef0f text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(253, 239, 15, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(253, 239, 15, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fdef0f;
background: linear-gradient(135deg, #fdef0f, #6CFD0F);

Monochromatic scale

Palettes built from #fdef0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdef0f in the Color Lab