#8F178E#8F178E

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

Color values

HEX#8F178E
RGBrgb(143, 23, 142)
HSLhsl(301, 72%, 33%)
HSVhsv(301, 84%, 56%)
CMYKcmyk(0%, 83.9%, 0.7%, 43.9%)
CIE-LABlab(34.82, 59.98, -37.00)
CIE-LCHlch(34.82, 70.48, 328.33°)
OKLaboklab(46.44% 0.168 -0.1027)
OKLCHoklch(46.44% 0.197 328.6)
XYZxyz(16.5164, 8.4067, 26.3387)
Luminance0.0840 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F178E #178F18
analogous
#54178F #8F178E #8F1752
triadic
#8F178E #8E8F17 #178E8F
tetradic
#8F178E #8F5417 #178F18 #17528F
square
#8F178E #8F5417 #178F18 #17528F
split-complementary
#8F178E #528F17 #178F54
monochromatic
#260625 #5A0F5A #8F178E #C41FC2 #E040DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F178E#FFFFFF#000000##FFFFFF
##8F178E1.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)
#004891
Deuteranopia (green-blind)
#3D578B
Tritanopia (blue-blind)
#942D54
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8f178e;
/* rgb */ color: rgb(143, 23, 142);
/* oklch */ color: oklch(46.4% 0.197 328.6);
Tailwind
colors: {
  custom: {
    50: '#b466af',
    500: '#8f178e',
    950: '#000000',
  },
}
SCSS
$custom: #8f178e;
$custom-light: #b466af;
$custom-dark: #000000;
JSON
{
  "hex": "#8f178e",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 300.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.46439,
    "c": 0.1969,
    "h": 328.6
  },
  "luminance": 0.08405
}

Semantic roles & 50–950 ramp

primary
#8F178E
secondary
#41C142
accent
#EF3A39
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#120710
muted
#817A7F

Preview Lab

Preview with #8F178E

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

Preview Lab → · Contrast checker → · Palette generator →

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