#8F1D7E#8F1D7E

#8F1D7E is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.180 H 335.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#8F1D7E
RGBrgb(143, 29, 126)
HSLhsl(309, 66%, 34%)
HSVhsv(309, 80%, 56%)
CMYKcmyk(0%, 79.7%, 11.9%, 43.9%)
CIE-LABlab(34.45, 55.91, -27.66)
CIE-LCHlch(34.45, 62.38, 333.68°)
OKLaboklab(45.89% 0.1634 -0.0756)
OKLCHoklch(45.89% 0.18 335.2)
XYZxyz(15.5332, 8.2261, 20.5044)
Luminance0.0823 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1D7E #1D8F2E
analogous
#671D8F #8F1D7E #8F1D45
triadic
#8F1D7E #7E8F1D #1D7E8F
tetradic
#8F1D7E #8F671D #1D8F2E #1D458F
square
#8F1D7E #8F671D #1D8F2E #1D458F
split-complementary
#8F1D7E #458F1D #1D8F67
monochromatic
#290824 #5C1351 #8F1D7E #C227AB #DB4CC5

Accessibility & contrast

On white

7.94
#8F1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8F1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F1D7E
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1D7E#FFFFFF#000000##FFFFFF
##8F1D7E1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4681
Deuteranopia (green-blind)
#48577B
Tritanopia (blue-blind)
#96274C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f1d7e;
/* rgb */ color: rgb(143, 29, 126);
/* oklch */ color: oklch(45.9% 0.180 335.2);
Tailwind
colors: {
  custom: {
    50: '#b367a3',
    500: '#8f1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #8f1d7e;
$custom-light: #b367a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1d7e",
  "rgb": {
    "r": 143,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 308.947,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45885,
    "c": 0.18007,
    "h": 335.2
  },
  "luminance": 0.08225
}

Semantic roles & 50–950 ramp

primary
#8F1D7E
secondary
#4BBD5C
accent
#E9583F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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