#F871A2#F871A2

#F871A2 is a light, vivid pink. Relative luminance 0.344; OKLCH L 72.3% C 0.172 H 359.5°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#F871A2
RGBrgb(248, 113, 162)
HSLhsl(338, 91%, 71%)
HSVhsv(338, 54%, 97%)
CMYKcmyk(0%, 54.4%, 34.7%, 2.7%)
CIE-LABlab(65.26, 56.40, -0.85)
CIE-LCHlch(65.26, 56.41, 359.14°)
OKLaboklab(72.28% 0.1717 -0.0015)
OKLCHoklch(72.28% 0.172 359.5)
XYZxyz(51.1408, 34.3805, 38.1182)
Luminance0.3438 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F871A2 #71F8C7
analogous
#F871E6 #F871A2 #F88371
triadic
#F871A2 #A2F871 #71A2F8
tetradic
#F871A2 #E6F871 #71F8C7 #8371F8
square
#F871A2 #E6F871 #71F8C7 #8371F8
split-complementary
#F871A2 #71F883 #71E6F8
monochromatic
#E30B5A #F5377C #F871A2 #FBABC8 #FEE2EC

Accessibility & contrast

On white

2.67
#F871A2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#F871A2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F871A2
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F871A2#FFFFFF#000000##000000
##F871A21.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#878FA3
Deuteranopia (green-blind)
#AAA89F
Tritanopia (blue-blind)
#FF6683
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #f871a2;
/* rgb */ color: rgb(248, 113, 162);
/* oklch */ color: oklch(72.3% 0.172 359.5);
Tailwind
colors: {
  custom: {
    50: '#fe9ebd',
    500: '#f871a2',
    950: '#000000',
  },
}
SCSS
$custom: #f871a2;
$custom-light: #fe9ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#f871a2",
  "rgb": {
    "r": 248,
    "g": 113,
    "b": 162
  },
  "hsl": {
    "h": 338.222,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.72284,
    "c": 0.17171,
    "h": 359.5
  },
  "luminance": 0.34375
}

Semantic roles & 50–950 ramp

primary
#F871A2
secondary
#D0F5E7
accent
#E69200
background
#FFFAFB
surface
#FFF3F6
border
#D7CDD0
text
#180F12
muted
#867F81

Preview Lab

Preview with #F871A2

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

Preview Lab → · Contrast checker → · Palette generator →

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