#F871EB#F871EB

#F871EB is a light, highly saturated purple. Relative luminance 0.378; OKLCH L 75.1% C 0.216 H 331.3°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#F871EB
RGBrgb(248, 113, 235)
HSLhsl(306, 91%, 71%)
HSVhsv(306, 54%, 97%)
CMYKcmyk(0%, 54.4%, 5.2%, 2.7%)
CIE-LABlab(67.85, 66.57, -37.93)
CIE-LCHlch(67.85, 76.62, 330.32°)
OKLaboklab(75.05% 0.1895 -0.1037)
OKLCHoklch(75.05% 0.216 331.3)
XYZxyz(59.6116, 37.7688, 82.7315)
Luminance0.3776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F871EB #71F87E
analogous
#C171F8 #F871EB #F871A7
triadic
#F871EB #EBF871 #71EBF8
tetradic
#F871EB #F8C171 #71F87E #71A7F8
square
#F871EB #F8C171 #71F87E #71A7F8
split-complementary
#F871EB #A7F871 #71F8C1
monochromatic
#E30BCF #F537E3 #F871EB #FBABF3 #FEE2FB

Accessibility & contrast

On white

2.46
#F871EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#F871EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F871EB
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F871EB#FFFFFF#000000##000000
##F871EB1.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B99EF
Deuteranopia (green-blind)
#94ACE7
Tritanopia (blue-blind)
#FF7CA4
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #f871eb;
/* rgb */ color: rgb(248, 113, 235);
/* oklch */ color: oklch(75.1% 0.216 331.3);
Tailwind
colors: {
  custom: {
    50: '#fda0f2',
    500: '#f871eb',
    950: '#000000',
  },
}
SCSS
$custom: #f871eb;
$custom-light: #fda0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#f871eb",
  "rgb": {
    "r": 248,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 305.778,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.75052,
    "c": 0.216,
    "h": 331.3
  },
  "luminance": 0.37765
}

Semantic roles & 50–950 ramp

primary
#F871EB
secondary
#D0F5D4
accent
#E61600
background
#FFFAFE
surface
#FFF4FD
border
#D7CED5
text
#180F17
muted
#867F85

Preview Lab

Preview with #F871EB

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

Preview Lab → · Contrast checker → · Palette generator →

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