Skip to content

#fef261

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

RGB
254, 242, 97
HSL
55°, 99%, 69%
CMYK
0, 5, 62, 0
Luminance
0.8544

Every format

HEX#fef261
RGBrgb(254, 242, 97)
HSLhsl(55, 99%, 69%)
CMYKcmyk(0%, 5%, 62%, 0%)
LABlab(94.1 -12.8 69.2)
LCHlch(94.1 70.4 100.5)
OKLCHoklch(0.945 0.163 104.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green94.9%
Blue38.0%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow61.8%
Key (black)0.4%

Color previews

#fef261 text on a black background

contrast 18.09:1

Card sample

#fef261 text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef261

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef261 in the Color Lab