Skip to content

#fffeb3

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

RGB
255, 254, 179
HSL
59°, 100%, 85%
CMYK
0, 0, 30, 0
Luminance
0.9540

Every format

HEX#fffeb3
RGBrgb(255, 254, 179)
HSLhsl(59, 100%, 85%)
CMYKcmyk(0%, 0%, 30%, 0%)
LABlab(98.2 -10.8 36.1)
LCHlch(98.2 37.7 106.7)
OKLCHoklch(0.981 0.094 107.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fffeb3 on white: 1.05:1
AA ✗ fail · AA-large · AAA
Aa
#fffeb3 on black: 20.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green99.6%
Blue70.2%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow29.8%
Key (black)0.0%

Color previews

#fffeb3 text on a black background

contrast 20.08:1

Card sample

#fffeb3 text on a white background

contrast 1.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffeb3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffeb3 in the Color Lab