#F871D2#F871D2

#F871D2 is a light, vivid pink. Relative luminance 0.364; OKLCH L 74.0% C 0.197 H 339.6°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#F871D2
RGBrgb(248, 113, 210)
HSLhsl(317, 91%, 71%)
HSVhsv(317, 54%, 97%)
CMYKcmyk(0%, 54.4%, 15.3%, 2.7%)
CIE-LABlab(66.84, 62.71, -25.59)
CIE-LCHlch(66.84, 67.73, 337.80°)
OKLaboklab(73.98% 0.185 -0.0687)
OKLCHoklch(73.98% 0.197 339.6)
XYZxyz(56.2503, 36.4243, 65.0283)
Luminance0.3642 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F871D2 #71F897
analogous
#DA71F8 #F871D2 #F8718E
triadic
#F871D2 #D2F871 #71D2F8
tetradic
#F871D2 #F8DA71 #71F897 #718EF8
square
#F871D2 #F8DA71 #71F897 #718EF8
split-complementary
#F871D2 #8EF871 #71F8DA
monochromatic
#E30BA7 #F537C0 #F871D2 #FBABE4 #FEE2F6

Accessibility & contrast

On white

2.54
#F871D2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#F871D2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F871D2
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F871D2#FFFFFF#000000##000000
##F871D21.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7795D5
Deuteranopia (green-blind)
#9EAACE
Tritanopia (blue-blind)
#FF7498
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #f871d2;
/* rgb */ color: rgb(248, 113, 210);
/* oklch */ color: oklch(74.0% 0.197 339.6);
Tailwind
colors: {
  custom: {
    50: '#fd9fe0',
    500: '#f871d2',
    950: '#000000',
  },
}
SCSS
$custom: #f871d2;
$custom-light: #fd9fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#f871d2",
  "rgb": {
    "r": 248,
    "g": 113,
    "b": 210
  },
  "hsl": {
    "h": 316.889,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.73979,
    "c": 0.19732,
    "h": 339.6
  },
  "luminance": 0.3642
}

Semantic roles & 50–950 ramp

primary
#F871D2
secondary
#D0F5DA
accent
#E64100
background
#FFFAFD
surface
#FFF4FB
border
#D7CED4
text
#180F15
muted
#867F83

Preview Lab

Preview with #F871D2

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

Preview Lab → · Contrast checker → · Palette generator →

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