#F871FA#F871FA

#F871FA is a light, highly saturated purple. Relative luminance 0.387; OKLCH L 75.8% C 0.228 H 327.0°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#F871FA
RGBrgb(248, 113, 250)
HSLhsl(299, 93%, 71%)
HSVhsv(299, 55%, 98%)
CMYKcmyk(0.8%, 54.8%, 0%, 2%)
CIE-LABlab(68.51, 69.05, -45.15)
CIE-LCHlch(68.51, 82.50, 326.82°)
OKLaboklab(75.76% 0.1914 -0.1244)
OKLCHoklch(75.76% 0.228 327)
XYZxyz(61.8708, 38.6725, 94.6296)
Luminance0.3867 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F871FA #73FA71
analogous
#B371FA #F871FA #FA71B7
triadic
#F871FA #FAF871 #71FAF8
tetradic
#F871FA #FAB371 #73FA71 #71B7FA
square
#F871FA #FAB371 #73FA71 #71B7FA
split-complementary
#F871FA #B7FA71 #71FAB3
monochromatic
#E508E8 #F536F8 #F871FA #FBACFC #FEE1FE

Accessibility & contrast

On white

2.40
#F871FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.73
#F871FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F871FA
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F871FA#FFFFFF#000000##000000
##F871FA1.002.408.738.73
#FFFFFF2.401.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#629CFE
Deuteranopia (green-blind)
#8EADF6
Tritanopia (blue-blind)
#FE81AB
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #f871fa;
/* rgb */ color: rgb(248, 113, 250);
/* oklch */ color: oklch(75.8% 0.228 327.0);
Tailwind
colors: {
  custom: {
    50: '#fda0fc',
    500: '#f871fa',
    950: '#000000',
  },
}
SCSS
$custom: #f871fa;
$custom-light: #fda0fc;
$custom-dark: #000000;
JSON
{
  "hex": "#f871fa",
  "rgb": {
    "r": 248,
    "g": 113,
    "b": 250
  },
  "hsl": {
    "h": 299.124,
    "s": 93.197,
    "l": 71.176
  },
  "oklch": {
    "l": 0.75755,
    "c": 0.22826,
    "h": 327
  },
  "luminance": 0.38669
}

Semantic roles & 50–950 ramp

primary
#F871FA
secondary
#D2F5D1
accent
#E60003
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#180F17
muted
#867F85

Preview Lab

Preview with #F871FA

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

Preview Lab → · Contrast checker → · Palette generator →

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