Skip to content

#fef982

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

RGB
254, 249, 130
HSL
58°, 98%, 75%
CMYK
0, 2, 49, 0
Luminance
0.9043

Every format

HEX#fef982
RGBrgb(254, 249, 130)
HSLhsl(58, 98%, 75%)
CMYKcmyk(0%, 2%, 49%, 0%)
LABlab(96.2 -13.8 57.2)
LCHlch(96.2 58.8 103.6)
OKLCHoklch(0.962 0.141 106.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef982 on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#fef982 on black: 19.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green97.6%
Blue51.0%

CMYK percentages

Cyan0.0%
Magenta2.0%
Yellow48.8%
Key (black)0.4%

Color previews

#fef982 text on a black background

contrast 19.09:1

Card sample

#fef982 text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef982

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef982 in the Color Lab