Skip to content

#f871cf

a light, electric magenta / pink · warm · closest name: Hot Pink

RGB
248, 113, 207
HSL
318°, 91%, 71%
CMYK
0, 54, 17, 3
Luminance
0.3627

At a glance

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

Hex
#f871cf
Hue
318°
magenta / pink
Saturation
91%
electric
Lightness
71%
light
Brightness
97%
HSV value
Perceived
69%
weighted brightness
Luminance
0.3627
WCAG relative
Temperature
Warm
40/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
8.25:1
Closest name
Hot Pink
ΔE2000 5.7
Where it sits
Hue318° of 360°
Saturation91%
Lightness71%
Temperature
Warm ← → Cool40% 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#f871cf
RGBrgb(248, 113, 207)
HSLhsl(318, 91%, 71%)
CMYKcmyk(0%, 54%, 17%, 3%)
LABlab(66.7 62.3 -24.1)
LCHlch(66.7 66.8 338.9)
OKLCHoklch(0.739 0.195 340.7)
Decimal16282063
Display P3color(display-p3 0.973 0.443 0.812)

Copy-ready code

/* CSS */
color: #f871cf;
background-color: #f871cf;
/* Tailwind (arbitrary) */
class="text-[#f871cf] bg-[#f871cf]"
/* SCSS */
$brand: #f871cf;
/* SwiftUI */
Color(red: 0.973, green: 0.443, blue: 0.812)
/* Android */
Color.parseColor("#f871cf")
/* Flutter */
Color(0xFFF871CF)
/* Python / OpenCV (BGR) */
(207, 113, 248)

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

Accessibility — WCAG contrast

Aa
#f871cf on white: 2.54:1
AA ✗ fail · AA-large · AAA
Aa
#f871cf on black: 8.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7895D2
deuteranopia · #9FAACC
tritanopia · #FF7397

Color scale — 50 to 950

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

#FDF2FA
#FBE5F4
#F9C3E8
#FA94DB
#f871cf
#F429B7
#E90CA6
#C20A8A
#9C086F
#700A51
#460633
Base = 400Lightest = 50 · #FDF2FADarkest = 950 · #460633
:root {
  --brand-50: #FDF2FA;
  --brand-100: #FBE5F4;
  --brand-200: #F9C3E8;
  --brand-300: #FA94DB;
  --brand-400: #f871cf;
  --brand-500: #F429B7;
  --brand-600: #E90CA6;
  --brand-700: #C20A8A;
  --brand-800: #9C086F;
  --brand-900: #700A51;
  --brand-950: #460633;
  --brand: #f871cf;
  --brand-ink: #000000;
}

Colors that work with #f871cf

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#FAF4F9
Tinted page background
Border#EDC0DF
Hairlines and dividers
Muted text#9B4B83
Captions on the surface
Accent#06C610
Second voice, not a rival
Dark variant#7A0656
Hover, pressed, headers
Light variant#FEE7F7
Selected rows, tints
Dark surface#24141F
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 #f871cf

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#71F89A
Analogous left#DD71F8
Analogous right#F8718C
Split-complement 1#8CF871
Split-complement 2#71F8DD
Triadic 1#CFF871
Triadic 2#71CFF8
Tetradic#F8DD71

RGB percentages

Red97.3%
Green44.3%
Blue81.2%

CMYK percentages

Cyan0.0%
Magenta54.4%
Yellow16.5%
Key (black)2.7%

Color previews

#f871cf text on a black background

contrast 8.25:1

Card sample

#f871cf text on a white background

contrast 2.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(248, 113, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(248, 113, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f871cf;
background: linear-gradient(135deg, #f871cf, #F87175);

Monochromatic scale

Palettes built from #f871cf

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.

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

#f871cf, answered

What color is #f871cf?

#f871cf is a light electric magenta / pink, closest to Hot Pink (ΔE2000 5.7). It sits at 318° on the hue wheel with 91% saturation and 71% lightness, which reads as warm.

What is the RGB value of #f871cf?

rgb(248, 113, 207) — 248 red, 113 green and 207 blue out of 255, or 97.3% / 44.3% / 81.2% by channel.

Is #f871cf a light or a dark color?

It is a mid-tone. Relative luminance is 0.3627 and perceived brightness is 69%, so black text on it reaches 8.25:1.

Should I use black or white text on #f871cf?

Black. It scores 8.25:1 against #f871cf, versus 2.54:1 for white — AAA at any size.

What is the complementary color of #f871cf?

#71F89A sits directly opposite on the wheel. Softer options are the split-complements #8CF871 and #71F8DD, which give the same contrast with far less vibration.

What colors go well with #f871cf?

For interface work: #FAF4F9 as the surface, #EDC0DF for borders, #9B4B83 for secondary text, #06C610 as an accent and #7A0656 for hover and pressed states. For a palette, the analogous pair #DD71F8 and #F8718C stays calm, while #71F89A is the loudest partner.

What is #f871cf in CMYK for printing?

cmyk(0%, 54%, 17%, 3%). 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 #f871cf warm or cool?

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

Work with #f871cf in the Color Lab