#8F217E#8F217E

#8F217E is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.176 H 335.2°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#8F217E
RGBrgb(143, 33, 126)
HSLhsl(309, 63%, 35%)
HSVhsv(309, 77%, 56%)
CMYKcmyk(0%, 76.9%, 11.9%, 43.9%)
CIE-LABlab(34.87, 54.70, -26.99)
CIE-LCHlch(34.87, 60.99, 333.74°)
OKLaboklab(46.19% 0.1598 -0.0738)
OKLCHoklch(46.19% 0.176 335.2)
XYZxyz(15.6377, 8.4351, 20.5392)
Luminance0.0843 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F217E #218F32
analogous
#69218F #8F217E #8F2147
triadic
#8F217E #7E8F21 #217E8F
tetradic
#8F217E #8F6921 #218F32 #21478F
square
#8F217E #8F6921 #218F32 #21478F
split-complementary
#8F217E #478F21 #218F69
monochromatic
#2C0A26 #5D1652 #8F217E #C12CAA #D753C3

Accessibility & contrast

On white

7.82
#8F217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F217E
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F217E#FFFFFF#000000##FFFFFF
##8F217E1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214880
Deuteranopia (green-blind)
#49587B
Tritanopia (blue-blind)
#962A4E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8f217e;
/* rgb */ color: rgb(143, 33, 126);
/* oklch */ color: oklch(46.2% 0.176 335.2);
Tailwind
colors: {
  custom: {
    50: '#b369a3',
    500: '#8f217e',
    950: '#000000',
  },
}
SCSS
$custom: #8f217e;
$custom-light: #b369a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f217e",
  "rgb": {
    "r": 143,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 309.273,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.4619,
    "c": 0.17601,
    "h": 335.2
  },
  "luminance": 0.08434
}

Semantic roles & 50–950 ramp

primary
#8F217E
secondary
#51BB61
accent
#E65B42
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F217E

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

Preview Lab → · Contrast checker → · Palette generator →

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