Skip to content

#f2afef

a light, vivid magenta / pink · neutral · closest name: Plum

RGB
242, 175, 239
HSL
303°, 72%, 82%
CMYK
0, 28, 1, 5
Luminance
0.5577

At a glance

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

Hex
#f2afef
Hue
303°
magenta / pink
Saturation
72%
vivid
Lightness
82%
light
Brightness
95%
HSV value
Perceived
80%
weighted brightness
Luminance
0.5577
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
12.15:1
Closest name
Plum
ΔE2000 4.5
Where it sits
Hue303° of 360°
Saturation72%
Lightness82%
Temperature
Warm ← → Cool48% 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#f2afef
RGBrgb(242, 175, 239)
HSLhsl(303, 72%, 82%)
CMYKcmyk(0%, 28%, 1%, 5%)
LABlab(79.5 34.6 -22.3)
LCHlch(79.5 41.1 327.2)
OKLCHoklch(0.837 0.113 328.0)
Decimal15904751
Display P3color(display-p3 0.949 0.686 0.937)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2afef on white: 1.73:1
AA ✗ fail · AA-large · AAA
Aa
#f2afef on black: 12.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #ABC0F2
deuteranopia · #BBC8ED
tritanopia · #F7B4C6

Color scale — 50 to 950

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

#FCF3FB
#F8E7F8
#F3C9F1
#f2afef
#E76EE2
#E03ED8
#D322CB
#AF1DA9
#8C1787
#661562
#400D3D
Base = 300Lightest = 50 · #FCF3FBDarkest = 950 · #400D3D
:root {
  --brand-50: #FCF3FB;
  --brand-100: #F8E7F8;
  --brand-200: #F3C9F1;
  --brand-300: #f2afef;
  --brand-400: #E76EE2;
  --brand-500: #E03ED8;
  --brand-600: #D322CB;
  --brand-700: #AF1DA9;
  --brand-800: #8C1787;
  --brand-900: #661562;
  --brand-950: #400D3D;
  --brand: #f2afef;
  --brand-ink: #000000;
}

Colors that work with #f2afef

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#EDC0EB
Hairlines and dividers
Muted text#9B4B97
Captions on the surface
Accent#39B418
Second voice, not a rival
Dark variant#6E126A
Hover, pressed, headers
Light variant#FBE9FB
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 #f2afef

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#AFF2B2
Analogous left#D4AFF2
Analogous right#F2AFCE
Split-complement 1#CEF2AF
Split-complement 2#AFF2D4
Triadic 1#EFF2AF
Triadic 2#AFEFF2
Tetradic#F2D4AF

RGB percentages

Red94.9%
Green68.6%
Blue93.7%

CMYK percentages

Cyan0.0%
Magenta27.7%
Yellow1.2%
Key (black)5.1%

Color previews

#f2afef text on a black background

contrast 12.15:1

Card sample

#f2afef text on a white background

contrast 1.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2afef

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.

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

Converts to four-color process without much drama. Proof it anyway.

#f2afef, answered

What color is #f2afef?

#f2afef is a light vivid magenta / pink, closest to Plum (ΔE2000 4.5). It sits at 303° on the hue wheel with 72% saturation and 82% lightness, which reads as neutral.

What is the RGB value of #f2afef?

rgb(242, 175, 239) — 242 red, 175 green and 239 blue out of 255, or 94.9% / 68.6% / 93.7% by channel.

Is #f2afef a light or a dark color?

It is a light color. Relative luminance is 0.5577 and perceived brightness is 80%, so black text on it reaches 12.15:1.

Should I use black or white text on #f2afef?

Black. It scores 12.15:1 against #f2afef, versus 1.73:1 for white — AAA at any size.

What is the complementary color of #f2afef?

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

What colors go well with #f2afef?

For interface work: #FAF4FA as the surface, #EDC0EB for borders, #9B4B97 for secondary text, #39B418 as an accent and #6E126A for hover and pressed states. For a palette, the analogous pair #D4AFF2 and #F2AFCE stays calm, while #AFF2B2 is the loudest partner.

What is #f2afef in CMYK for printing?

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

Is #f2afef warm or cool?

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

Work with #f2afef in the Color Lab