Skip to content

#f0cdfc

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

RGB
240, 205, 252
HSL
285°, 89%, 90%
CMYK
5, 19, 0, 1
Luminance
0.6922

At a glance

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

Hex
#f0cdfc
Hue
285°
violet
Saturation
89%
electric
Lightness
90%
pale
Brightness
99%
HSV value
Perceived
87%
weighted brightness
Luminance
0.6922
WCAG relative
Temperature
Cool
58/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
14.84:1
Closest name
Thistle
ΔE2000 7.6
Where it sits
Hue285° of 360°
Saturation89%
Lightness90%
Temperature
Warm ← → Cool58% 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#f0cdfc
RGBrgb(240, 205, 252)
HSLhsl(285, 89%, 90%)
CMYKcmyk(5%, 19%, 0%, 1%)
LABlab(86.6 20.4 -18.4)
LCHlch(86.6 27.5 317.9)
OKLCHoklch(0.892 0.073 317.4)
Decimal15781372
Display P3color(display-p3 0.941 0.804 0.988)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0cdfc on white: 1.41:1
AA ✗ fail · AA-large · AAA
Aa
#f0cdfc on black: 14.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C8D7FE
deuteranopia · #CFDAFA
tritanopia · #F0D2DD

Color scale — 50 to 950

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

#FAF2FD
#F5E5FB
#f0cdfc
#DF95F9
#CF60F5
#C02BF2
#B00EE7
#920CC0
#75099A
#560B6F
#360745
Base = 200Lightest = 50 · #FAF2FDDarkest = 950 · #360745
:root {
  --brand-50: #FAF2FD;
  --brand-100: #F5E5FB;
  --brand-200: #f0cdfc;
  --brand-300: #DF95F9;
  --brand-400: #CF60F5;
  --brand-500: #C02BF2;
  --brand-600: #B00EE7;
  --brand-700: #920CC0;
  --brand-800: #75099A;
  --brand-900: #560B6F;
  --brand-950: #360745;
  --brand: #f0cdfc;
  --brand-ink: #000000;
}

Colors that work with #f0cdfc

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#F9F4FA
Tinted page background
Border#E1C0ED
Hairlines and dividers
Muted text#864B9B
Captions on the surface
Accent#68C408
Second voice, not a rival
Dark variant#5B0778
Hover, pressed, headers
Light variant#F8E7FE
Selected rows, tints
Dark surface#201424
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 #f0cdfc

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#D9FCCD
Analogous left#D8CDFC
Analogous right#FCCDF0
Split-complement 1#F0FCCD
Split-complement 2#CDFCD8
Triadic 1#FCF0CD
Triadic 2#CDFCF0
Tetradic#FCD8CD

RGB percentages

Red94.1%
Green80.4%
Blue98.8%

CMYK percentages

Cyan4.8%
Magenta18.7%
Yellow0.0%
Key (black)1.2%

Color previews

#f0cdfc text on a black background

contrast 14.84:1

Card sample

#f0cdfc text on a white background

contrast 1.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0cdfc

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.

#f0cdfc 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.

#f0cdfc, answered

What color is #f0cdfc?

#f0cdfc is a pale electric violet, closest to Thistle (ΔE2000 7.6). It sits at 285° on the hue wheel with 89% saturation and 90% lightness, which reads as cool.

What is the RGB value of #f0cdfc?

rgb(240, 205, 252) — 240 red, 205 green and 252 blue out of 255, or 94.1% / 80.4% / 98.8% by channel.

Is #f0cdfc a light or a dark color?

It is a light color. Relative luminance is 0.6922 and perceived brightness is 87%, so black text on it reaches 14.84:1.

Should I use black or white text on #f0cdfc?

Black. It scores 14.84:1 against #f0cdfc, versus 1.41:1 for white — AAA at any size.

What is the complementary color of #f0cdfc?

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

What colors go well with #f0cdfc?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #864B9B for secondary text, #68C408 as an accent and #5B0778 for hover and pressed states. For a palette, the analogous pair #D8CDFC and #FCCDF0 stays calm, while #D9FCCD is the loudest partner.

What is #f0cdfc in CMYK for printing?

cmyk(5%, 19%, 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 #f0cdfc warm or cool?

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

Work with #f0cdfc in the Color Lab