Skip to content

#f2f0fb

a pale, vivid blue · warm · closest name: lavender

RGB
242, 240, 251
HSL
251°, 58%, 96%
CMYK
4, 4, 0, 2
Luminance
0.8816

Every format

HEX#f2f0fb
RGBrgb(242, 240, 251)
HSLhsl(251, 58%, 96%)
CMYKcmyk(4%, 4%, 0%, 2%)
LABlab(95.2 2.6 -5.0)
LCHlch(95.2 5.7 297.6)
OKLCHoklch(0.960 0.015 294.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green94.1%
Blue98.4%

CMYK percentages

Cyan3.6%
Magenta4.4%
Yellow0.0%
Key (black)1.6%

Color previews

#f2f0fb text on a black background

contrast 18.63:1

Card sample

#f2f0fb text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2f0fb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2f0fb in the Color Lab