#8F217D#8F217D

#8F217D is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.175 H 335.7°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#8F217D
RGBrgb(143, 33, 125)
HSLhsl(310, 63%, 35%)
HSVhsv(310, 77%, 56%)
CMYKcmyk(0%, 76.9%, 12.6%, 43.9%)
CIE-LABlab(34.82, 54.54, -26.45)
CIE-LCHlch(34.82, 60.62, 334.13°)
OKLaboklab(46.14% 0.1597 -0.0722)
OKLCHoklch(46.14% 0.175 335.7)
XYZxyz(15.5735, 8.4094, 20.2010)
Luminance0.0841 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F217D #218F33
analogous
#6A218F #8F217D #8F2146
triadic
#8F217D #7D8F21 #217D8F
tetradic
#8F217D #8F6A21 #218F33 #21468F
square
#8F217D #8F6A21 #218F33 #21468F
split-complementary
#8F217D #468F21 #218F6A
monochromatic
#2C0A26 #5D1652 #8F217D #C12CA8 #D753C2

Accessibility & contrast

On white

7.83
#8F217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8F217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F217D
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F217D#FFFFFF#000000##FFFFFF
##8F217D1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477F
Deuteranopia (green-blind)
#49587A
Tritanopia (blue-blind)
#962A4D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8f217d;
/* rgb */ color: rgb(143, 33, 125);
/* oklch */ color: oklch(46.1% 0.175 335.7);
Tailwind
colors: {
  custom: {
    50: '#b369a3',
    500: '#8f217d',
    950: '#000000',
  },
}
SCSS
$custom: #8f217d;
$custom-light: #b369a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f217d",
  "rgb": {
    "r": 143,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 309.818,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46136,
    "c": 0.17529,
    "h": 335.7
  },
  "luminance": 0.08408
}

Semantic roles & 50–950 ramp

primary
#8F217D
secondary
#51BB62
accent
#E65D42
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F217D

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

Preview Lab → · Contrast checker → · Palette generator →

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