#F871E7#F871E7

#F871E7 is a light, highly saturated purple. Relative luminance 0.375; OKLCH L 74.9% C 0.213 H 332.5°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#F871E7
RGBrgb(248, 113, 231)
HSLhsl(308, 91%, 71%)
HSVhsv(308, 54%, 97%)
CMYKcmyk(0%, 54.4%, 6.9%, 2.7%)
CIE-LABlab(67.68, 65.93, -35.98)
CIE-LCHlch(67.68, 75.11, 331.37°)
OKLaboklab(74.87% 0.1889 -0.0981)
OKLCHoklch(74.87% 0.213 332.5)
XYZxyz(59.0402, 37.5403, 79.7222)
Luminance0.3754 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F871E7 #71F882
analogous
#C671F8 #F871E7 #F871A3
triadic
#F871E7 #E7F871 #71E7F8
tetradic
#F871E7 #F8C671 #71F882 #71A3F8
square
#F871E7 #F8C671 #71F882 #71A3F8
split-complementary
#F871E7 #A3F871 #71F8C6
monochromatic
#E30BC8 #F537DD #F871E7 #FBABF1 #FEE2FA

Accessibility & contrast

On white

2.47
#F871E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#F871E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F871E7
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F871E7#FFFFFF#000000##000000
##F871E71.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D99EB
Deuteranopia (green-blind)
#96ACE3
Tritanopia (blue-blind)
#FF7BA2
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #f871e7;
/* rgb */ color: rgb(248, 113, 231);
/* oklch */ color: oklch(74.9% 0.213 332.5);
Tailwind
colors: {
  custom: {
    50: '#fda0ef',
    500: '#f871e7',
    950: '#000000',
  },
}
SCSS
$custom: #f871e7;
$custom-light: #fda0ef;
$custom-dark: #000000;
JSON
{
  "hex": "#f871e7",
  "rgb": {
    "r": 248,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 307.556,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.74872,
    "c": 0.21285,
    "h": 332.5
  },
  "luminance": 0.37536
}

Semantic roles & 50–950 ramp

primary
#F871E7
secondary
#D0F5D5
accent
#E61D00
background
#FFFAFE
surface
#FFF4FD
border
#D7CED5
text
#180F16
muted
#867F84

Preview Lab

Preview with #F871E7

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

Preview Lab → · Contrast checker → · Palette generator →

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