Skip to content

#f0ddfb

a pale, electric violet · cool · closest name: Thistle

RGB
240, 221, 251
HSL
278°, 79%, 93%
CMYK
4, 12, 0, 2
Luminance
0.7720

At a glance

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

Hex
#f0ddfb
Hue
278°
violet
Saturation
79%
electric
Lightness
93%
pale
Brightness
98%
HSV value
Perceived
90%
weighted brightness
Luminance
0.7720
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
16.44:1
Closest name
Thistle
ΔE2000 7.3
Where it sits
Hue278° of 360°
Saturation79%
Lightness93%
Temperature
Warm ← → Cool62% 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#f0ddfb
RGBrgb(240, 221, 251)
HSLhsl(278, 79%, 93%)
CMYKcmyk(4%, 12%, 0%, 2%)
LABlab(90.4 11.8 -12.2)
LCHlch(90.4 17.0 314.1)
OKLCHoklch(0.922 0.045 313.3)
Decimal15785467
Display P3color(display-p3 0.941 0.867 0.984)

Copy-ready code

/* CSS */
color: #f0ddfb;
background-color: #f0ddfb;
/* Tailwind (arbitrary) */
class="text-[#f0ddfb] bg-[#f0ddfb]"
/* SCSS */
$brand: #f0ddfb;
/* SwiftUI */
Color(red: 0.941, green: 0.867, blue: 0.984)
/* Android */
Color.parseColor("#f0ddfb")
/* Flutter */
Color(0xFFF0DDFB)
/* Python / OpenCV (BGR) */
(251, 221, 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 #f0ddfb · 16.44:1
Use #000000AAA at every size.
Aa
White text · 1.28:1
AA fail · AA large fail · AAA fail
Aa
Black text · 16.44:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #f0ddfb as text scores 1.28:1 on white and 16.44:1 on black.

Accessibility — WCAG contrast

Aa
#f0ddfb on white: 1.28:1
AA ✗ fail · AA-large · AAA
Aa
#f0ddfb on black: 16.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D9E2FC
deuteranopia · #DDE4FA
tritanopia · #EFE0E7

Color scale — 50 to 950

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

#F9F3FC
#f0ddfb
#E4C7F5
#D39BF3
#BD68ED
#A636E7
#941ADB
#7B16B6
#631192
#49116A
#2E0A42
Base = 100Lightest = 50 · #F9F3FCDarkest = 950 · #2E0A42
:root {
  --brand-50: #F9F3FC;
  --brand-100: #f0ddfb;
  --brand-200: #E4C7F5;
  --brand-300: #D39BF3;
  --brand-400: #BD68ED;
  --brand-500: #A636E7;
  --brand-600: #941ADB;
  --brand-700: #7B16B6;
  --brand-800: #631192;
  --brand-900: #49116A;
  --brand-950: #2E0A42;
  --brand: #f0ddfb;
  --brand-ink: #000000;
}

Colors that work with #f0ddfb

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#F8F4FA
Tinted page background
Border#DCC0ED
Hairlines and dividers
Muted text#7D4B9B
Captions on the surface
Accent#7BBC10
Second voice, not a rival
Dark variant#4D0D72
Hover, pressed, headers
Light variant#F5E8FC
Selected rows, tints
Dark surface#1E1424
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 #f0ddfb

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#E8FBDD
Analogous left#E1DDFB
Analogous right#FBDDF7
Split-complement 1#F7FBDD
Split-complement 2#DDFBE1
Triadic 1#FBF0DD
Triadic 2#DDFBF0
Tetradic#FBE1DD

RGB percentages

Red94.1%
Green86.7%
Blue98.4%

CMYK percentages

Cyan4.4%
Magenta12.0%
Yellow0.0%
Key (black)1.6%

Color previews

#f0ddfb text on a black background

contrast 16.44:1

Card sample

#f0ddfb text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ddfb

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.

#f0ddfb in the real world

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

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

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

#f0ddfb, answered

What color is #f0ddfb?

#f0ddfb is a pale electric violet, closest to Thistle (ΔE2000 7.3). It sits at 278° on the hue wheel with 79% saturation and 93% lightness, which reads as cool.

What is the RGB value of #f0ddfb?

rgb(240, 221, 251) — 240 red, 221 green and 251 blue out of 255, or 94.1% / 86.7% / 98.4% by channel.

Is #f0ddfb a light or a dark color?

It is a light color. Relative luminance is 0.7720 and perceived brightness is 90%, so black text on it reaches 16.44:1.

Should I use black or white text on #f0ddfb?

Black. It scores 16.44:1 against #f0ddfb, versus 1.28:1 for white — AAA at any size.

What is the complementary color of #f0ddfb?

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

What colors go well with #f0ddfb?

For interface work: #F8F4FA as the surface, #DCC0ED for borders, #7D4B9B for secondary text, #7BBC10 as an accent and #4D0D72 for hover and pressed states. For a palette, the analogous pair #E1DDFB and #FBDDF7 stays calm, while #E8FBDD is the loudest partner.

What is #f0ddfb in CMYK for printing?

cmyk(4%, 12%, 0%, 2%). 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 #f0ddfb warm or cool?

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

Work with #f0ddfb in the Color Lab