Skip to content

#fffe9b

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

RGB
255, 254, 155
HSL
59°, 100%, 80%
CMYK
0, 0, 39, 0
Luminance
0.9451

Every format

HEX#fffe9b
RGBrgb(255, 254, 155)
HSLhsl(59, 100%, 80%)
CMYKcmyk(0%, 0%, 39%, 0%)
LABlab(97.8 -13.5 47.4)
LCHlch(97.8 49.3 105.9)
OKLCHoklch(0.977 0.121 107.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fffe9b on white: 1.06:1
AA ✗ fail · AA-large · AAA
Aa
#fffe9b on black: 19.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green99.6%
Blue60.8%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow39.2%
Key (black)0.0%

Color previews

#fffe9b text on a black background

contrast 19.90:1

Card sample

#fffe9b text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffe9b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffe9b in the Color Lab