#F871D7#F871D7

#F871D7 is a light, highly saturated pink. Relative luminance 0.367; OKLCH L 74.2% C 0.201 H 337.8°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#F871D7
RGBrgb(248, 113, 215)
HSLhsl(315, 91%, 71%)
HSVhsv(315, 54%, 97%)
CMYKcmyk(0%, 54.4%, 13.3%, 2.7%)
CIE-LABlab(67.03, 63.45, -28.09)
CIE-LCHlch(67.03, 69.39, 336.12°)
OKLaboklab(74.18% 0.186 -0.0758)
OKLCHoklch(74.18% 0.201 337.8)
XYZxyz(56.8829, 36.6774, 68.3603)
Luminance0.3667 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F871D7 #71F892
analogous
#D671F8 #F871D7 #F87193
triadic
#F871D7 #D7F871 #71D7F8
tetradic
#F871D7 #F8D671 #71F892 #7193F8
square
#F871D7 #F8D671 #71F892 #7193F8
split-complementary
#F871D7 #93F871 #71F8D6
monochromatic
#E30BAF #F537C7 #F871D7 #FBABE7 #FEE2F7

Accessibility & contrast

On white

2.52
#F871D7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#F871D7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F871D7
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F871D7#FFFFFF#000000##000000
##F871D71.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7596DA
Deuteranopia (green-blind)
#9CABD3
Tritanopia (blue-blind)
#FF769A
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #f871d7;
/* rgb */ color: rgb(248, 113, 215);
/* oklch */ color: oklch(74.2% 0.201 337.8);
Tailwind
colors: {
  custom: {
    50: '#fd9fe3',
    500: '#f871d7',
    950: '#000000',
  },
}
SCSS
$custom: #f871d7;
$custom-light: #fd9fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#f871d7",
  "rgb": {
    "r": 248,
    "g": 113,
    "b": 215
  },
  "hsl": {
    "h": 314.667,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.74183,
    "c": 0.20084,
    "h": 337.8
  },
  "luminance": 0.36673
}

Semantic roles & 50–950 ramp

primary
#F871D7
secondary
#D0F5D9
accent
#E63800
background
#FFFAFD
surface
#FFF4FB
border
#D7CED4
text
#180F15
muted
#867F83

Preview Lab

Preview with #F871D7

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#F871D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva