Skip to content

#fef960

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

RGB
254, 249, 96
HSL
58°, 99%, 69%
CMYK
0, 2, 62, 0
Luminance
0.8967

Every format

HEX#fef960
RGBrgb(254, 249, 96)
HSLhsl(58, 99%, 69%)
CMYKcmyk(0%, 2%, 62%, 0%)
LABlab(95.9 -16.3 71.5)
LCHlch(95.9 73.3 102.9)
OKLCHoklch(0.959 0.170 107.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef960 on white: 1.11:1
AA ✗ fail · AA-large · AAA
Aa
#fef960 on black: 18.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green97.6%
Blue37.6%

CMYK percentages

Cyan0.0%
Magenta2.0%
Yellow62.2%
Key (black)0.4%

Color previews

#fef960 text on a black background

contrast 18.93:1

Card sample

#fef960 text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(254, 249, 96, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(254, 249, 96, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fef960;
background: linear-gradient(135deg, #fef960, #9AFE60);

Monochromatic scale

Palettes built from #fef960

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef960 in the Color Lab