Skip to content

#fff2bc

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

RGB
255, 242, 188
HSL
48°, 100%, 87%
CMYK
0, 5, 26, 0
Luminance
0.8840

Every format

HEX#fff2bc
RGBrgb(255, 242, 188)
HSLhsl(48, 100%, 87%)
CMYKcmyk(0%, 5%, 26%, 0%)
LABlab(95.3 -3.7 27.7)
LCHlch(95.3 27.9 97.7)
OKLCHoklch(0.958 0.070 96.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green94.9%
Blue73.7%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow26.3%
Key (black)0.0%

Color previews

#fff2bc text on a black background

contrast 18.68:1

Card sample

#fff2bc text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff2bc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff2bc in the Color Lab