#8F1D7D#8F1D7D

#8F1D7D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.179 H 335.6°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#8F1D7D
RGBrgb(143, 29, 125)
HSLhsl(309, 66%, 34%)
HSVhsv(309, 80%, 56%)
CMYKcmyk(0%, 79.7%, 12.6%, 43.9%)
CIE-LABlab(34.40, 55.76, -27.11)
CIE-LCHlch(34.40, 62.00, 334.07°)
OKLaboklab(45.83% 0.1633 -0.0741)
OKLCHoklch(45.83% 0.179 335.6)
XYZxyz(15.4690, 8.2005, 20.1662)
Luminance0.0820 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1D7D #1D8F2F
analogous
#681D8F #8F1D7D #8F1D44
triadic
#8F1D7D #7D8F1D #1D7D8F
tetradic
#8F1D7D #8F681D #1D8F2F #1D448F
square
#8F1D7D #8F681D #1D8F2F #1D448F
split-complementary
#8F1D7D #448F1D #1D8F68
monochromatic
#290824 #5C1351 #8F1D7D #C227A9 #DB4CC4

Accessibility & contrast

On white

7.96
#8F1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F1D7D
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1D7D#FFFFFF#000000##FFFFFF
##8F1D7D1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4680
Deuteranopia (green-blind)
#48577A
Tritanopia (blue-blind)
#97274C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f1d7d;
/* rgb */ color: rgb(143, 29, 125);
/* oklch */ color: oklch(45.8% 0.179 335.6);
Tailwind
colors: {
  custom: {
    50: '#b367a3',
    500: '#8f1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #8f1d7d;
$custom-light: #b367a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1d7d",
  "rgb": {
    "r": 143,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 309.474,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45831,
    "c": 0.17935,
    "h": 335.6
  },
  "luminance": 0.08199
}

Semantic roles & 50–950 ramp

primary
#8F1D7D
secondary
#4BBD5D
accent
#E95A3F
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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