#F871E2#F871E2

#F871E2 is a light, highly saturated purple. Relative luminance 0.373; OKLCH L 74.7% C 0.209 H 334.1°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#F871E2
RGBrgb(248, 113, 226)
HSLhsl(310, 91%, 71%)
HSVhsv(310, 54%, 97%)
CMYKcmyk(0%, 54.4%, 8.9%, 2.7%)
CIE-LABlab(67.47, 65.14, -33.54)
CIE-LCHlch(67.47, 73.26, 332.76°)
OKLaboklab(74.65% 0.1881 -0.0912)
OKLCHoklch(74.65% 0.209 334.1)
XYZxyz(58.3441, 37.2619, 76.0560)
Luminance0.3726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F871E2 #71F887
analogous
#CA71F8 #F871E2 #F8719E
triadic
#F871E2 #E2F871 #71E2F8
tetradic
#F871E2 #F8CA71 #71F887 #719EF8
square
#F871E2 #F8CA71 #71F887 #719EF8
split-complementary
#F871E2 #9EF871 #71F8CA
monochromatic
#E30BC0 #F537D6 #F871E2 #FBABEE #FEE2F9

Accessibility & contrast

On white

2.48
#F871E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#F871E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F871E2
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F871E2#FFFFFF#000000##000000
##F871E21.002.488.458.45
#FFFFFF2.481.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7098E6
Deuteranopia (green-blind)
#98ACDE
Tritanopia (blue-blind)
#FF79A0
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #f871e2;
/* rgb */ color: rgb(248, 113, 226);
/* oklch */ color: oklch(74.7% 0.209 334.1);
Tailwind
colors: {
  custom: {
    50: '#fd9feb',
    500: '#f871e2',
    950: '#000000',
  },
}
SCSS
$custom: #f871e2;
$custom-light: #fd9feb;
$custom-dark: #000000;
JSON
{
  "hex": "#f871e2",
  "rgb": {
    "r": 248,
    "g": 113,
    "b": 226
  },
  "hsl": {
    "h": 309.778,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.74651,
    "c": 0.20898,
    "h": 334.1
  },
  "luminance": 0.37258
}

Semantic roles & 50–950 ramp

primary
#F871E2
secondary
#D0F5D6
accent
#E62500
background
#FFFAFE
surface
#FFF4FD
border
#D7CED5
text
#180F16
muted
#867F84

Preview Lab

Preview with #F871E2

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

Preview Lab → · Contrast checker → · Palette generator →

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