Skip to content

#fdef0c

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

RGB
253, 239, 12
HSL
57°, 98%, 52%
CMYK
0, 6, 95, 1
Luminance
0.8264

Every format

HEX#fdef0c
RGBrgb(253, 239, 12)
HSLhsl(57, 98%, 52%)
CMYKcmyk(0%, 6%, 95%, 1%)
LABlab(92.9 -14.6 90.4)
LCHlch(92.9 91.6 99.2)
OKLCHoklch(0.933 0.197 105.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green93.7%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow95.3%
Key (black)0.8%

Color previews

#fdef0c text on a black background

contrast 17.53:1

Card sample

#fdef0c text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdef0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdef0c in the Color Lab