Skip to content

#fff2bf

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

RGB
255, 242, 191
HSL
48°, 100%, 88%
CMYK
0, 5, 25, 0
Luminance
0.8853

Every format

HEX#fff2bf
RGBrgb(255, 242, 191)
HSLhsl(48, 100%, 88%)
CMYKcmyk(0%, 5%, 25%, 0%)
LABlab(95.4 -3.3 26.2)
LCHlch(95.4 26.4 97.3)
OKLCHoklch(0.959 0.067 95.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fff2bf on white: 1.12:1
AA ✗ fail · AA-large · AAA
Aa
#fff2bf on black: 18.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green94.9%
Blue74.9%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow25.1%
Key (black)0.0%

Color previews

#fff2bf text on a black background

contrast 18.71:1

Card sample

#fff2bf text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff2bf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff2bf in the Color Lab