#8F217F#8F217F

#8F217F is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.177 H 334.8°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#8F217F
RGBrgb(143, 33, 127)
HSLhsl(309, 63%, 35%)
HSVhsv(309, 77%, 56%)
CMYKcmyk(0%, 76.9%, 11.2%, 43.9%)
CIE-LABlab(34.93, 54.85, -27.53)
CIE-LCHlch(34.93, 61.37, 333.35°)
OKLaboklab(46.24% 0.1599 -0.0753)
OKLCHoklch(46.24% 0.177 334.8)
XYZxyz(15.7025, 8.4611, 20.8807)
Luminance0.0846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F217F #218F31
analogous
#68218F #8F217F #8F2148
triadic
#8F217F #7F8F21 #217F8F
tetradic
#8F217F #8F6821 #218F31 #21488F
square
#8F217F #8F6821 #218F31 #21488F
split-complementary
#8F217F #488F21 #218F68
monochromatic
#2C0A27 #5D1653 #8F217F #C12CAB #D753C4

Accessibility & contrast

On white

7.80
#8F217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8F217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F217F
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F217F#FFFFFF#000000##FFFFFF
##8F217F1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204882
Deuteranopia (green-blind)
#48587C
Tritanopia (blue-blind)
#962B4E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8f217f;
/* rgb */ color: rgb(143, 33, 127);
/* oklch */ color: oklch(46.2% 0.177 334.8);
Tailwind
colors: {
  custom: {
    50: '#b369a4',
    500: '#8f217f',
    950: '#000000',
  },
}
SCSS
$custom: #8f217f;
$custom-light: #b369a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f217f",
  "rgb": {
    "r": 143,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 308.727,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46244,
    "c": 0.17674,
    "h": 334.8
  },
  "luminance": 0.0846
}

Semantic roles & 50–950 ramp

primary
#8F217F
secondary
#51BB60
accent
#E65A42
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F217F

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

Preview Lab → · Contrast checker → · Palette generator →

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