#8F1787#8F1787

#8F1787 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.192 H 331.3°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#8F1787
RGBrgb(143, 23, 135)
HSLhsl(304, 72%, 33%)
HSVhsv(304, 84%, 56%)
CMYKcmyk(0%, 83.9%, 5.6%, 43.9%)
CIE-LABlab(34.40, 58.87, -33.33)
CIE-LCHlch(34.40, 67.65, 330.48°)
OKLaboklab(46.01% 0.1683 -0.092)
OKLCHoklch(46.01% 0.192 331.3)
XYZxyz(16.0073, 8.2031, 23.6573)
Luminance0.0820 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1787 #178F1F
analogous
#5B178F #8F1787 #8F174B
triadic
#8F1787 #878F17 #17878F
tetradic
#8F1787 #8F5B17 #178F1F #174B8F
square
#8F1787 #8F5B17 #178F1F #174B8F
split-complementary
#8F1787 #4B8F17 #178F5B
monochromatic
#260623 #5A0F55 #8F1787 #C41FB9 #E040D6

Accessibility & contrast

On white

7.95
#8F1787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8F1787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F1787
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1787#FFFFFF#000000##FFFFFF
##8F17871.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04478A
Deuteranopia (green-blind)
#415784
Tritanopia (blue-blind)
#952950
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f1787;
/* rgb */ color: rgb(143, 23, 135);
/* oklch */ color: oklch(46.0% 0.192 331.3);
Tailwind
colors: {
  custom: {
    50: '#b466aa',
    500: '#8f1787',
    950: '#000000',
  },
}
SCSS
$custom: #8f1787;
$custom-light: #b466aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1787",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 304,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.46012,
    "c": 0.19176,
    "h": 331.3
  },
  "luminance": 0.08202
}

Semantic roles & 50–950 ramp

primary
#8F1787
secondary
#41C14A
accent
#EF4539
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #8F1787

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

Preview Lab → · Contrast checker → · Palette generator →

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