Skip to content

#f0efff

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

RGB
240, 239, 255
HSL
244°, 100%, 97%
CMYK
6, 6, 0, 0
Luminance
0.8748

Every format

HEX#f0efff
RGBrgb(240, 239, 255)
HSLhsl(244, 100%, 97%)
CMYKcmyk(6%, 6%, 0%, 0%)
LABlab(94.9 3.2 -7.6)
LCHlch(94.9 8.2 293.2)
OKLCHoklch(0.958 0.021 288.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0efff on white: 1.14:1
AA ✗ fail · AA-large · AAA
Aa
#f0efff on black: 18.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green93.7%
Blue100.0%

CMYK percentages

Cyan5.9%
Magenta6.3%
Yellow0.0%
Key (black)0.0%

Color previews

#f0efff text on a black background

contrast 18.50:1

Card sample

#f0efff text on a white background

contrast 1.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0efff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0efff in the Color Lab