Skip to content

#f0ecfd

a pale, electric blue · cool · closest name: Lavender

RGB
240, 236, 253
HSL
254°, 81%, 96%
CMYK
5, 7, 0, 1
Luminance
0.8561

At a glance

Every number on this page in one read: what #f0ecfd is made of, how bright it looks, and which way it leans.

Hex
#f0ecfd
Hue
254°
blue
Saturation
81%
electric
Lightness
96%
pale
Brightness
99%
HSV value
Perceived
94%
weighted brightness
Luminance
0.8561
WCAG relative
Temperature
Cool
75/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
18.12:1
Closest name
Lavender
ΔE2000 2.4
Where it sits
Hue254° of 360°
Saturation81%
Lightness96%
Temperature
Warm ← → Cool75% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#f0ecfd
RGBrgb(240, 236, 253)
HSLhsl(254, 81%, 96%)
CMYKcmyk(5%, 7%, 0%, 1%)
LABlab(94.1 4.4 -7.7)
LCHlch(94.1 8.9 299.8)
OKLCHoklch(0.951 0.023 296.7)
Decimal15789309
Display P3color(display-p3 0.941 0.925 0.992)

Copy-ready code

/* CSS */
color: #f0ecfd;
background-color: #f0ecfd;
/* Tailwind (arbitrary) */
class="text-[#f0ecfd] bg-[#f0ecfd]"
/* SCSS */
$brand: #f0ecfd;
/* SwiftUI */
Color(red: 0.941, green: 0.925, blue: 0.992)
/* Android */
Color.parseColor("#f0ecfd")
/* Flutter */
Color(0xFFF0ECFD)
/* Python / OpenCV (BGR) */
(253, 236, 240)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #f0ecfd · 18.12:1
Use #000000AAA at every size.
Aa
White text · 1.16:1
AA fail · AA large fail · AAA fail
Aa
Black text · 18.12:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #f0ecfd as text scores 1.16:1 on white and 18.12:1 on black.

Accessibility — WCAG contrast

Aa
#f0ecfd on white: 1.16:1
AA ✗ fail · AA-large · AAA
Aa
#f0ecfd on black: 18.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E9EEFE
deuteranopia · #E9EEFC
tritanopia · #EEEEF1

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #f0ecfd is pinned to step 50; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#f0ecfd
#EBE6F9
#D1C6F5
#AF99F4
#8767EF
#5F34EA
#4617DE
#3A13B9
#2F1094
#25106B
#170A43
Base = 50Lightest = 50 · #f0ecfdDarkest = 950 · #170A43
:root {
  --brand-50: #f0ecfd;
  --brand-100: #EBE6F9;
  --brand-200: #D1C6F5;
  --brand-300: #AF99F4;
  --brand-400: #8767EF;
  --brand-500: #5F34EA;
  --brand-600: #4617DE;
  --brand-700: #3A13B9;
  --brand-800: #2F1094;
  --brand-900: #25106B;
  --brand-950: #170A43;
  --brand: #f0ecfd;
  --brand-ink: #000000;
}

Colors that work with #f0ecfd

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F6F4FA
Tinted page background
Border#CAC0ED
Hairlines and dividers
Muted text#5D4B9B
Captions on the surface
Accent#B9B913
Second voice, not a rival
Dark variant#240C73
Hover, pressed, headers
Light variant#EDE8FD
Selected rows, tints
Dark surface#181424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #f0ecfd

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#F9FDEC
Analogous left#ECF1FD
Analogous right#F9ECFD
Split-complement 1#FDF9EC
Split-complement 2#F1FDEC
Triadic 1#FDF0EC
Triadic 2#ECFDF0
Tetradic#FDECF1

RGB percentages

Red94.1%
Green92.5%
Blue99.2%

CMYK percentages

Cyan5.1%
Magenta6.7%
Yellow0.0%
Key (black)0.8%

Color previews

#f0ecfd text on a black background

contrast 18.12:1

Card sample

#f0ecfd text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ecfd

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#f0ecfd in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#f0ecfd, answered

What color is #f0ecfd?

#f0ecfd is a pale electric blue, closest to Lavender (ΔE2000 2.4). It sits at 254° on the hue wheel with 81% saturation and 96% lightness, which reads as cool.

What is the RGB value of #f0ecfd?

rgb(240, 236, 253) — 240 red, 236 green and 253 blue out of 255, or 94.1% / 92.5% / 99.2% by channel.

Is #f0ecfd a light or a dark color?

It is a light color. Relative luminance is 0.8561 and perceived brightness is 94%, so black text on it reaches 18.12:1.

Should I use black or white text on #f0ecfd?

Black. It scores 18.12:1 against #f0ecfd, versus 1.16:1 for white — AAA at any size.

What is the complementary color of #f0ecfd?

#F9FDEC sits directly opposite on the wheel. Softer options are the split-complements #FDF9EC and #F1FDEC, which give the same contrast with far less vibration.

What colors go well with #f0ecfd?

For interface work: #F6F4FA as the surface, #CAC0ED for borders, #5D4B9B for secondary text, #B9B913 as an accent and #240C73 for hover and pressed states. For a palette, the analogous pair #ECF1FD and #F9ECFD stays calm, while #F9FDEC is the loudest partner.

What is #f0ecfd in CMYK for printing?

cmyk(5%, 7%, 0%, 1%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #f0ecfd warm or cool?

Cool — it scores 75 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F6ECFD; nudged cooler, #ECEEFD.

Work with #f0ecfd in the Color Lab