Skip to content

#f2d8ff

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

RGB
242, 216, 255
HSL
280°, 100%, 92%
CMYK
5, 15, 0, 0
Luminance
0.7521

At a glance

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

Hex
#f2d8ff
Hue
280°
violet
Saturation
100%
electric
Lightness
92%
pale
Brightness
100%
HSV value
Perceived
90%
weighted brightness
Luminance
0.7521
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
16.04:1
Closest name
Thistle
ΔE2000 7.4
Where it sits
Hue280° of 360°
Saturation100%
Lightness92%
Temperature
Warm ← → Cool61% 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#f2d8ff
RGBrgb(242, 216, 255)
HSLhsl(280, 100%, 92%)
CMYKcmyk(5%, 15%, 0%, 0%)
LABlab(89.5 15.8 -15.7)
LCHlch(89.5 22.3 315.3)
OKLCHoklch(0.915 0.059 314.5)
Decimal15915263
Display P3color(display-p3 0.949 0.847 1.000)

Copy-ready code

/* CSS */
color: #f2d8ff;
background-color: #f2d8ff;
/* Tailwind (arbitrary) */
class="text-[#f2d8ff] bg-[#f2d8ff]"
/* SCSS */
$brand: #f2d8ff;
/* SwiftUI */
Color(red: 0.949, green: 0.847, blue: 1.000)
/* Android */
Color.parseColor("#f2d8ff")
/* Flutter */
Color(0xFFF2D8FF)
/* Python / OpenCV (BGR) */
(255, 216, 242)

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 #f2d8ff · 16.04:1
Use #000000AAA at every size.
Aa
White text · 1.31:1
AA fail · AA large fail · AAA fail
Aa
Black text · 16.04:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #f2d8ff as text scores 1.31:1 on white and 16.04:1 on black.

Accessibility — WCAG contrast

Aa
#f2d8ff on white: 1.31:1
AA ✗ fail · AA-large · AAA
Aa
#f2d8ff on black: 16.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #D3DFFF
deuteranopia · #D8E2FE
tritanopia · #F1DCE5

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #f2d8ff 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.

#F9F1FE
#f2d8ff
#E8C0FC
#DA8FFF
#C757FF
#B41FFF
#A300F5
#8800CC
#6D00A3
#500576
#320349
Base = 100Lightest = 50 · #F9F1FEDarkest = 950 · #320349
:root {
  --brand-50: #F9F1FE;
  --brand-100: #f2d8ff;
  --brand-200: #E8C0FC;
  --brand-300: #DA8FFF;
  --brand-400: #C757FF;
  --brand-500: #B41FFF;
  --brand-600: #A300F5;
  --brand-700: #8800CC;
  --brand-800: #6D00A3;
  --brand-900: #500576;
  --brand-950: #320349;
  --brand: #f2d8ff;
  --brand-ink: #000000;
}

Colors that work with #f2d8ff

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#DEC0ED
Hairlines and dividers
Muted text#804B9B
Captions on the surface
Accent#78CC00
Second voice, not a rival
Dark variant#550080
Hover, pressed, headers
Light variant#F7E5FF
Selected rows, tints
Dark surface#1F1424
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 #f2d8ff

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#E5FFD8
Analogous left#DFD8FF
Analogous right#FFD8F9
Split-complement 1#F9FFD8
Split-complement 2#D8FFDF
Triadic 1#FFF2D8
Triadic 2#D8FFF2
Tetradic#FFDFD8

RGB percentages

Red94.9%
Green84.7%
Blue100.0%

CMYK percentages

Cyan5.1%
Magenta15.3%
Yellow0.0%
Key (black)0.0%

Color previews

#f2d8ff text on a black background

contrast 16.04:1

Card sample

#f2d8ff text on a white background

contrast 1.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2d8ff

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.

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

#f2d8ff, answered

What color is #f2d8ff?

#f2d8ff is a pale electric violet, closest to Thistle (ΔE2000 7.4). It sits at 280° on the hue wheel with 100% saturation and 92% lightness, which reads as cool.

What is the RGB value of #f2d8ff?

rgb(242, 216, 255) — 242 red, 216 green and 255 blue out of 255, or 94.9% / 84.7% / 100% by channel.

Is #f2d8ff a light or a dark color?

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

Should I use black or white text on #f2d8ff?

Black. It scores 16.04:1 against #f2d8ff, versus 1.31:1 for white — AAA at any size.

What is the complementary color of #f2d8ff?

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

What colors go well with #f2d8ff?

For interface work: #F8F4FA as the surface, #DEC0ED for borders, #804B9B for secondary text, #78CC00 as an accent and #550080 for hover and pressed states. For a palette, the analogous pair #DFD8FF and #FFD8F9 stays calm, while #E5FFD8 is the loudest partner.

What is #f2d8ff in CMYK for printing?

cmyk(5%, 15%, 0%, 0%). 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 #f2d8ff warm or cool?

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

Work with #f2d8ff in the Color Lab