#8F2871#8F2871

#8F2871 is a mid, vivid pink. Relative luminance 0.085; OKLCH L 46.2% C 0.159 H 341.8°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#8F2871
RGBrgb(143, 40, 113)
HSLhsl(317, 56%, 36%)
HSVhsv(317, 72%, 56%)
CMYKcmyk(0%, 72%, 21%, 43.9%)
CIE-LABlab(35.10, 50.33, -18.47)
CIE-LCHlch(35.10, 53.61, 339.85°)
OKLaboklab(46.15% 0.1508 -0.0496)
OKLCHoklch(46.15% 0.159 341.8)
XYZxyz(15.0676, 8.5510, 16.4766)
Luminance0.0855 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2871 #288F46
analogous
#79288F #8F2871 #8F283D
triadic
#8F2871 #718F28 #28718F
tetradic
#8F2871 #8F7928 #288F46 #283D8F
square
#8F2871 #8F7928 #288F46 #283D8F
split-complementary
#8F2871 #3D8F28 #288F79
monochromatic
#2F0D25 #5F1B4B #8F2871 #BF3597 #D25FB1

Accessibility & contrast

On white

7.75
#8F2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8F2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F2871
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2871#FFFFFF#000000##FFFFFF
##8F28711.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314873
Deuteranopia (green-blind)
#51596F
Tritanopia (blue-blind)
#982949
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8f2871;
/* rgb */ color: rgb(143, 40, 113);
/* oklch */ color: oklch(46.2% 0.159 341.8);
Tailwind
colors: {
  custom: {
    50: '#b36b9a',
    500: '#8f2871',
    950: '#000000',
  },
}
SCSS
$custom: #8f2871;
$custom-light: #b36b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2871",
  "rgb": {
    "r": 143,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 317.476,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46153,
    "c": 0.1587,
    "h": 341.8
  },
  "luminance": 0.08549
}

Semantic roles & 50–950 ramp

primary
#8F2871
secondary
#5BB876
accent
#E07448
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8F2871

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

Preview Lab → · Contrast checker → · Palette generator →

#8F2871 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva