#F871DA#F871DA

#F871DA is a light, highly saturated pink. Relative luminance 0.368; OKLCH L 74.3% C 0.203 H 336.8°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#F871DA
RGBrgb(248, 113, 218)
HSLhsl(313, 91%, 71%)
HSVhsv(313, 54%, 97%)
CMYKcmyk(0%, 54.4%, 12.1%, 2.7%)
CIE-LABlab(67.15, 63.90, -29.58)
CIE-LCHlch(67.15, 70.42, 335.16°)
OKLaboklab(74.31% 0.1866 -0.08)
OKLCHoklch(74.31% 0.203 336.8)
XYZxyz(57.2719, 36.8330, 70.4091)
Luminance0.3683 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F871DA #71F88F
analogous
#D271F8 #F871DA #F87196
triadic
#F871DA #DAF871 #71DAF8
tetradic
#F871DA #F8D271 #71F88F #7196F8
square
#F871DA #F8D271 #71F88F #7196F8
split-complementary
#F871DA #96F871 #71F8D2
monochromatic
#E30BB3 #F537CB #F871DA #FBABE9 #FEE2F7

Accessibility & contrast

On white

2.51
#F871DA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#F871DA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F871DA
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F871DA#FFFFFF#000000##000000
##F871DA1.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7496DD
Deuteranopia (green-blind)
#9BABD6
Tritanopia (blue-blind)
#FF779C
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #f871da;
/* rgb */ color: rgb(248, 113, 218);
/* oklch */ color: oklch(74.3% 0.203 336.8);
Tailwind
colors: {
  custom: {
    50: '#fd9fe5',
    500: '#f871da',
    950: '#000000',
  },
}
SCSS
$custom: #f871da;
$custom-light: #fd9fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#f871da",
  "rgb": {
    "r": 248,
    "g": 113,
    "b": 218
  },
  "hsl": {
    "h": 313.333,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.74308,
    "c": 0.20301,
    "h": 336.8
  },
  "luminance": 0.36829
}

Semantic roles & 50–950 ramp

primary
#F871DA
secondary
#D0F5D8
accent
#E63300
background
#FFFAFE
surface
#FFF4FC
border
#D7CED5
text
#180F16
muted
#867F84

Preview Lab

Preview with #F871DA

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

Preview Lab → · Contrast checker → · Palette generator →

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