#8F217A#8F217A

#8F217A is a mid, vivid pink. Relative luminance 0.083; OKLCH L 46.0% C 0.173 H 337.1°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#8F217A
RGBrgb(143, 33, 122)
HSLhsl(311, 63%, 35%)
HSVhsv(311, 77%, 56%)
CMYKcmyk(0%, 76.9%, 14.7%, 43.9%)
CIE-LABlab(34.67, 54.09, -24.81)
CIE-LCHlch(34.67, 59.51, 335.36°)
OKLaboklab(45.98% 0.1595 -0.0675)
OKLCHoklch(45.98% 0.173 337.1)
XYZxyz(15.3847, 8.3339, 19.2069)
Luminance0.0833 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F217A #218F36
analogous
#6D218F #8F217A #8F2143
triadic
#8F217A #7A8F21 #217A8F
tetradic
#8F217A #8F6D21 #218F36 #21438F
square
#8F217A #8F6D21 #218F36 #21438F
split-complementary
#8F217A #438F21 #218F6D
monochromatic
#2C0A25 #5D1650 #8F217A #C12CA4 #D753BE

Accessibility & contrast

On white

7.88
#8F217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8F217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F217A
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F217A#FFFFFF#000000##FFFFFF
##8F217A1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477C
Deuteranopia (green-blind)
#4B5777
Tritanopia (blue-blind)
#97284B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f217a;
/* rgb */ color: rgb(143, 33, 122);
/* oklch */ color: oklch(46.0% 0.173 337.1);
Tailwind
colors: {
  custom: {
    50: '#b369a0',
    500: '#8f217a',
    950: '#000000',
  },
}
SCSS
$custom: #8f217a;
$custom-light: #b369a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f217a",
  "rgb": {
    "r": 143,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 311.455,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45976,
    "c": 0.17315,
    "h": 337.1
  },
  "luminance": 0.08332
}

Semantic roles & 50–950 ramp

primary
#8F217A
secondary
#51BB65
accent
#E66142
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8F217A

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

Preview Lab → · Contrast checker → · Palette generator →

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