#F871D4#F871D4

#F871D4 is a light, vivid pink. Relative luminance 0.365; OKLCH L 74.1% C 0.199 H 338.9°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#F871D4
RGBrgb(248, 113, 212)
HSLhsl(316, 91%, 71%)
HSVhsv(316, 54%, 97%)
CMYKcmyk(0%, 54.4%, 14.5%, 2.7%)
CIE-LABlab(66.92, 63.00, -26.60)
CIE-LCHlch(66.92, 68.39, 337.11°)
OKLaboklab(74.06% 0.1854 -0.0715)
OKLCHoklch(74.06% 0.199 338.9)
XYZxyz(56.5010, 36.5246, 66.3487)
Luminance0.3652 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F871D4 #71F895
analogous
#D871F8 #F871D4 #F87190
triadic
#F871D4 #D4F871 #71D4F8
tetradic
#F871D4 #F8D871 #71F895 #7190F8
square
#F871D4 #F8D871 #71F895 #7190F8
split-complementary
#F871D4 #90F871 #71F8D8
monochromatic
#E30BAA #F537C2 #F871D4 #FBABE6 #FEE2F6

Accessibility & contrast

On white

2.53
#F871D4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#F871D4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F871D4
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F871D4#FFFFFF#000000##000000
##F871D41.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7695D7
Deuteranopia (green-blind)
#9DABD0
Tritanopia (blue-blind)
#FF7599
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #f871d4;
/* rgb */ color: rgb(248, 113, 212);
/* oklch */ color: oklch(74.1% 0.199 338.9);
Tailwind
colors: {
  custom: {
    50: '#fd9fe1',
    500: '#f871d4',
    950: '#000000',
  },
}
SCSS
$custom: #f871d4;
$custom-light: #fd9fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#f871d4",
  "rgb": {
    "r": 248,
    "g": 113,
    "b": 212
  },
  "hsl": {
    "h": 316,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.7406,
    "c": 0.19872,
    "h": 338.9
  },
  "luminance": 0.3652
}

Semantic roles & 50–950 ramp

primary
#F871D4
secondary
#D0F5DA
accent
#E63D00
background
#FFFAFD
surface
#FFF4FB
border
#D7CED4
text
#180F15
muted
#867F83

Preview Lab

Preview with #F871D4

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

Preview Lab → · Contrast checker → · Palette generator →

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