#F871F2#F871F2

#F871F2 is a light, highly saturated purple. Relative luminance 0.382; OKLCH L 75.4% C 0.222 H 329.2°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#F871F2
RGBrgb(248, 113, 242)
HSLhsl(303, 91%, 71%)
HSVhsv(303, 54%, 97%)
CMYKcmyk(0%, 54.4%, 2.4%, 2.7%)
CIE-LABlab(68.15, 67.71, -41.32)
CIE-LCHlch(68.15, 79.32, 328.61°)
OKLaboklab(75.38% 0.1904 -0.1134)
OKLCHoklch(75.38% 0.222 329.2)
XYZxyz(60.6429, 38.1814, 88.1628)
Luminance0.3818 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F871F2 #71F877
analogous
#BB71F8 #F871F2 #F871AE
triadic
#F871F2 #F2F871 #71F2F8
tetradic
#F871F2 #F8BB71 #71F877 #71AEF8
square
#F871F2 #F8BB71 #71F877 #71AEF8
split-complementary
#F871F2 #AEF871 #71F8BB
monochromatic
#E30BDA #F537ED #F871F2 #FBABF7 #FEE2FC

Accessibility & contrast

On white

2.43
#F871F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#F871F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F871F2
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F871F2#FFFFFF#000000##000000
##F871F21.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#679AF6
Deuteranopia (green-blind)
#91ADEE
Tritanopia (blue-blind)
#FF7FA7
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #f871f2;
/* rgb */ color: rgb(248, 113, 242);
/* oklch */ color: oklch(75.4% 0.222 329.2);
Tailwind
colors: {
  custom: {
    50: '#fda0f7',
    500: '#f871f2',
    950: '#000000',
  },
}
SCSS
$custom: #f871f2;
$custom-light: #fda0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#f871f2",
  "rgb": {
    "r": 248,
    "g": 113,
    "b": 242
  },
  "hsl": {
    "h": 302.667,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.75375,
    "c": 0.22164,
    "h": 329.2
  },
  "luminance": 0.38178
}

Semantic roles & 50–950 ramp

primary
#F871F2
secondary
#D0F5D2
accent
#E60A00
background
#FFFAFF
surface
#FFF4FE
border
#D7CED6
text
#180F17
muted
#867F85

Preview Lab

Preview with #F871F2

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

Preview Lab → · Contrast checker → · Palette generator →

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