Skip to content

#ffd9ec

a pale, electric magenta / pink · warm · closest name: Thistle

RGB
255, 217, 236
HSL
330°, 100%, 93%
CMYK
0, 15, 8, 0
Luminance
0.7694

At a glance

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

Hex
#ffd9ec
Hue
330°
magenta / pink
Saturation
100%
electric
Lightness
93%
pale
Brightness
100%
HSV value
Perceived
91%
weighted brightness
Luminance
0.7694
WCAG relative
Temperature
Warm
33/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
16.39:1
Closest name
Thistle
ΔE2000 7.9
Where it sits
Hue330° of 360°
Saturation100%
Lightness93%
Temperature
Warm ← → Cool33% cool

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

Every format

HEX#ffd9ec
RGBrgb(255, 217, 236)
HSLhsl(330, 100%, 93%)
CMYKcmyk(0%, 15%, 8%, 0%)
LABlab(90.3 16.3 -4.4)
LCHlch(90.3 16.8 344.9)
OKLCHoklch(0.922 0.049 346.5)
Decimal16767468
Display P3color(display-p3 1.000 0.851 0.925)

Copy-ready code

/* CSS */
color: #ffd9ec;
background-color: #ffd9ec;
/* Tailwind (arbitrary) */
class="text-[#ffd9ec] bg-[#ffd9ec]"
/* SCSS */
$brand: #ffd9ec;
/* SwiftUI */
Color(red: 1.000, green: 0.851, blue: 0.925)
/* Android */
Color.parseColor("#ffd9ec")
/* Flutter */
Color(0xFFFFD9EC)
/* Python / OpenCV (BGR) */
(236, 217, 255)

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

Accessibility — WCAG contrast

Aa
#ffd9ec on white: 1.28:1
AA ✗ fail · AA-large · AAA
Aa
#ffd9ec on black: 16.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DBE0ED
deuteranopia · #E4E5EB
tritanopia · #FFD9DF

Color scale — 50 to 950

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

#FEF1F7
#ffd9ec
#FCC0DE
#FF8FC7
#FF57AB
#FF1F8F
#F5007A
#CC0066
#A30052
#76053D
#490326
Base = 100Lightest = 50 · #FEF1F7Darkest = 950 · #490326
:root {
  --brand-50: #FEF1F7;
  --brand-100: #ffd9ec;
  --brand-200: #FCC0DE;
  --brand-300: #FF8FC7;
  --brand-400: #FF57AB;
  --brand-500: #FF1F8F;
  --brand-600: #F5007A;
  --brand-700: #CC0066;
  --brand-800: #A30052;
  --brand-900: #76053D;
  --brand-950: #490326;
  --brand: #ffd9ec;
  --brand-ink: #000000;
}

Colors that work with #ffd9ec

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#FAF4F7
Tinted page background
Border#EDC0D6
Hairlines and dividers
Muted text#9B4B73
Captions on the surface
Accent#00CC30
Second voice, not a rival
Dark variant#800040
Hover, pressed, headers
Light variant#FFE5F2
Selected rows, tints
Dark surface#24141C
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 #ffd9ec

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#D9FFEC
Analogous left#FFD9FF
Analogous right#FFD9D9
Split-complement 1#D9FFD9
Split-complement 2#D9FFFF
Triadic 1#ECFFD9
Triadic 2#D9ECFF
Tetradic#FFFFD9

RGB percentages

Red100.0%
Green85.1%
Blue92.5%

CMYK percentages

Cyan0.0%
Magenta14.9%
Yellow7.5%
Key (black)0.0%

Color previews

#ffd9ec text on a black background

contrast 16.39:1

Card sample

#ffd9ec text on a white background

contrast 1.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffd9ec

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.

#ffd9ec in the real world

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

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

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

#ffd9ec, answered

What color is #ffd9ec?

#ffd9ec is a pale electric magenta / pink, closest to Thistle (ΔE2000 7.9). It sits at 330° on the hue wheel with 100% saturation and 93% lightness, which reads as warm.

What is the RGB value of #ffd9ec?

rgb(255, 217, 236) — 255 red, 217 green and 236 blue out of 255, or 100% / 85.1% / 92.5% by channel.

Is #ffd9ec a light or a dark color?

It is a light color. Relative luminance is 0.7694 and perceived brightness is 91%, so black text on it reaches 16.39:1.

Should I use black or white text on #ffd9ec?

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

What is the complementary color of #ffd9ec?

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

What colors go well with #ffd9ec?

For interface work: #FAF4F7 as the surface, #EDC0D6 for borders, #9B4B73 for secondary text, #00CC30 as an accent and #800040 for hover and pressed states. For a palette, the analogous pair #FFD9FF and #FFD9D9 stays calm, while #D9FFEC is the loudest partner.

What is #ffd9ec in CMYK for printing?

cmyk(0%, 15%, 8%, 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 #ffd9ec warm or cool?

Warm — it scores 33 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FFD9DE; nudged cooler, #FFD9FA.

Work with #ffd9ec in the Color Lab