Skip to content

#fef950

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

RGB
254, 249, 80
HSL
58°, 99%, 66%
CMYK
0, 2, 69, 0
Luminance
0.8940

Every format

HEX#fef950
RGBrgb(254, 249, 80)
HSLhsl(58, 99%, 66%)
CMYKcmyk(0%, 2%, 69%, 0%)
LABlab(95.8 -17.2 77.4)
LCHlch(95.8 79.3 102.5)
OKLCHoklch(0.957 0.181 107.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green97.6%
Blue31.4%

CMYK percentages

Cyan0.0%
Magenta2.0%
Yellow68.5%
Key (black)0.4%

Color previews

#fef950 text on a black background

contrast 18.88:1

Card sample

#fef950 text on a white background

contrast 1.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef950

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef950 in the Color Lab