Skip to content

#f2f5bc

a light, vivid yellow · cool · closest name: beige

RGB
242, 245, 188
HSL
63°, 74%, 85%
CMYK
1, 0, 23, 4
Luminance
0.8781

Every format

HEX#f2f5bc
RGBrgb(242, 245, 188)
HSLhsl(63, 74%, 85%)
CMYKcmyk(1%, 0%, 23%, 4%)
LABlab(95.1 -10.0 27.2)
LCHlch(95.1 29.0 110.2)
OKLCHoklch(0.954 0.073 110.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green96.1%
Blue73.7%

CMYK percentages

Cyan1.2%
Magenta0.0%
Yellow23.3%
Key (black)3.9%

Color previews

#f2f5bc text on a black background

contrast 18.56:1

Card sample

#f2f5bc text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2f5bc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2f5bc in the Color Lab