#8F217B#8F217B

#8F217B is a mid, vivid pink. Relative luminance 0.084; OKLCH L 46.0% C 0.174 H 336.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#8F217B
RGBrgb(143, 33, 123)
HSLhsl(311, 63%, 35%)
HSVhsv(311, 77%, 56%)
CMYKcmyk(0%, 76.9%, 14%, 43.9%)
CIE-LABlab(34.72, 54.24, -25.35)
CIE-LCHlch(34.72, 59.88, 334.95°)
OKLaboklab(46.03% 0.1596 -0.0691)
OKLCHoklch(46.03% 0.174 336.6)
XYZxyz(15.4470, 8.3588, 19.5349)
Luminance0.0836 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F217B #218F35
analogous
#6C218F #8F217B #8F2144
triadic
#8F217B #7B8F21 #217B8F
tetradic
#8F217B #8F6C21 #218F35 #21448F
square
#8F217B #8F6C21 #218F35 #21448F
split-complementary
#8F217B #448F21 #218F6C
monochromatic
#2C0A25 #5D1650 #8F217B #C12CA6 #D753BF

Accessibility & contrast

On white

7.86
#8F217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F217B
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F217B#FFFFFF#000000##FFFFFF
##8F217B1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477D
Deuteranopia (green-blind)
#4A5878
Tritanopia (blue-blind)
#97294C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8f217b;
/* rgb */ color: rgb(143, 33, 123);
/* oklch */ color: oklch(46.0% 0.174 336.6);
Tailwind
colors: {
  custom: {
    50: '#b369a1',
    500: '#8f217b',
    950: '#000000',
  },
}
SCSS
$custom: #8f217b;
$custom-light: #b369a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f217b",
  "rgb": {
    "r": 143,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 310.909,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46029,
    "c": 0.17386,
    "h": 336.6
  },
  "luminance": 0.08357
}

Semantic roles & 50–950 ramp

primary
#8F217B
secondary
#51BB64
accent
#E66042
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8F217B

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

Preview Lab → · Contrast checker → · Palette generator →

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