Skip to content

#fff1b7

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

RGB
255, 241, 183
HSL
48°, 100%, 86%
CMYK
0, 6, 28, 0
Luminance
0.8759

Every format

HEX#fff1b7
RGBrgb(255, 241, 183)
HSLhsl(48, 100%, 86%)
CMYKcmyk(0%, 6%, 28%, 0%)
LABlab(95.0 -3.9 29.8)
LCHlch(95.0 30.0 97.4)
OKLCHoklch(0.956 0.075 96.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fff1b7 on white: 1.13:1
AA ✗ fail · AA-large · AAA
Aa
#fff1b7 on black: 18.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green94.5%
Blue71.8%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow28.2%
Key (black)0.0%

Color previews

#fff1b7 text on a black background

contrast 18.52:1

Card sample

#fff1b7 text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff1b7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff1b7 in the Color Lab