Skip to content

#f0c7f2

a pale, vivid magenta / pink · neutral · closest name: Thistle

RGB
240, 199, 242
HSL
297°, 62%, 87%
CMYK
1, 18, 0, 5
Luminance
0.6578

At a glance

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

Hex
#f0c7f2
Hue
297°
magenta / pink
Saturation
62%
vivid
Lightness
87%
pale
Brightness
95%
HSV value
Perceived
85%
weighted brightness
Luminance
0.6578
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
14.16:1
Closest name
Thistle
ΔE2000 6.7
Where it sits
Hue297° of 360°
Saturation62%
Lightness87%
Temperature
Warm ← → Cool52% cool

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

Every format

HEX#f0c7f2
RGBrgb(240, 199, 242)
HSLhsl(297, 62%, 87%)
CMYKcmyk(1%, 18%, 0%, 5%)
LABlab(84.9 21.8 -15.7)
LCHlch(84.9 26.8 324.1)
OKLCHoklch(0.878 0.073 324.7)
Decimal15779826
Display P3color(display-p3 0.941 0.780 0.949)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0c7f2 on white: 1.48:1
AA ✗ fail · AA-large · AAA
Aa
#f0c7f2 on black: 14.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C4D1F4
deuteranopia · #CDD6F0
tritanopia · #F2CBD5

Color scale — 50 to 950

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

#FBF4FB
#F6E8F7
#f0c7f2
#E7A4EA
#DA76DF
#CE49D5
#C02EC7
#A026A6
#801F84
#5D1A60
#3A103C
Base = 200Lightest = 50 · #FBF4FBDarkest = 950 · #3A103C
:root {
  --brand-50: #FBF4FB;
  --brand-100: #F6E8F7;
  --brand-200: #f0c7f2;
  --brand-300: #E7A4EA;
  --brand-400: #DA76DF;
  --brand-500: #CE49D5;
  --brand-600: #C02EC7;
  --brand-700: #A026A6;
  --brand-800: #801F84;
  --brand-900: #5D1A60;
  --brand-950: #3A103C;
  --brand: #f0c7f2;
  --brand-ink: #000000;
}

Colors that work with #f0c7f2

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#FAF4FA
Tinted page background
Border#EBC0ED
Hairlines and dividers
Muted text#974B9B
Captions on the surface
Accent#4AA923
Second voice, not a rival
Dark variant#641867
Hover, pressed, headers
Light variant#F9EAFA
Selected rows, tints
Dark surface#241424
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 #f0c7f2

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#C9F2C7
Analogous left#DBC7F2
Analogous right#F2C7DF
Split-complement 1#DFF2C7
Split-complement 2#C7F2DB
Triadic 1#F2F0C7
Triadic 2#C7F2F0
Tetradic#F2DBC7

RGB percentages

Red94.1%
Green78.0%
Blue94.9%

CMYK percentages

Cyan0.8%
Magenta17.8%
Yellow0.0%
Key (black)5.1%

Color previews

#f0c7f2 text on a black background

contrast 14.16:1

Card sample

#f0c7f2 text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0c7f2

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.

#f0c7f2 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

Very light tints can drop out on uncoated stock; check it at 100% size before signing off.

#f0c7f2, answered

What color is #f0c7f2?

#f0c7f2 is a pale vivid magenta / pink, closest to Thistle (ΔE2000 6.7). It sits at 297° on the hue wheel with 62% saturation and 87% lightness, which reads as neutral.

What is the RGB value of #f0c7f2?

rgb(240, 199, 242) — 240 red, 199 green and 242 blue out of 255, or 94.1% / 78% / 94.9% by channel.

Is #f0c7f2 a light or a dark color?

It is a light color. Relative luminance is 0.6578 and perceived brightness is 85%, so black text on it reaches 14.16:1.

Should I use black or white text on #f0c7f2?

Black. It scores 14.16:1 against #f0c7f2, versus 1.48:1 for white — AAA at any size.

What is the complementary color of #f0c7f2?

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

What colors go well with #f0c7f2?

For interface work: #FAF4FA as the surface, #EBC0ED for borders, #974B9B for secondary text, #4AA923 as an accent and #641867 for hover and pressed states. For a palette, the analogous pair #DBC7F2 and #F2C7DF stays calm, while #C9F2C7 is the loudest partner.

What is #f0c7f2 in CMYK for printing?

cmyk(1%, 18%, 0%, 5%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #f0c7f2 warm or cool?

Neutral — it scores 52 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F2C7E4; nudged cooler, #E0C6F3.

Work with #f0c7f2 in the Color Lab