#F871DC#F871DC

#F871DC is a light, highly saturated pink. Relative luminance 0.369; OKLCH L 74.4% C 0.204 H 336.1°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#F871DC
RGBrgb(248, 113, 220)
HSLhsl(312, 91%, 71%)
HSVhsv(312, 54%, 97%)
CMYKcmyk(0%, 54.4%, 11.3%, 2.7%)
CIE-LABlab(67.23, 64.21, -30.58)
CIE-LCHlch(67.23, 71.12, 334.54°)
OKLaboklab(74.39% 0.187 -0.0828)
OKLCHoklch(74.39% 0.204 336.1)
XYZxyz(57.5352, 36.9383, 71.7957)
Luminance0.3693 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F871DC #71F88D
analogous
#D071F8 #F871DC #F87198
triadic
#F871DC #DCF871 #71DCF8
tetradic
#F871DC #F8D071 #71F88D #7198F8
square
#F871DC #F8D071 #71F88D #7198F8
split-complementary
#F871DC #98F871 #71F8D0
monochromatic
#E30BB7 #F537CE #F871DC #FBABEA #FEE2F8

Accessibility & contrast

On white

2.50
#F871DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.39
#F871DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F871DC
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F871DC#FFFFFF#000000##000000
##F871DC1.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7397DF
Deuteranopia (green-blind)
#9AABD8
Tritanopia (blue-blind)
#FF779D
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #f871dc;
/* rgb */ color: rgb(248, 113, 220);
/* oklch */ color: oklch(74.4% 0.204 336.1);
Tailwind
colors: {
  custom: {
    50: '#fd9fe7',
    500: '#f871dc',
    950: '#000000',
  },
}
SCSS
$custom: #f871dc;
$custom-light: #fd9fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#f871dc",
  "rgb": {
    "r": 248,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 312.444,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.74393,
    "c": 0.20448,
    "h": 336.1
  },
  "luminance": 0.36934
}

Semantic roles & 50–950 ramp

primary
#F871DC
secondary
#D0F5D8
accent
#E63000
background
#FFFAFE
surface
#FFF4FC
border
#D7CED5
text
#180F16
muted
#867F84

Preview Lab

Preview with #F871DC

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

Preview Lab → · Contrast checker → · Palette generator →

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