#8F1A7D#8F1A7D

#8F1A7D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.182 H 335.6°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#8F1A7D
RGBrgb(143, 26, 125)
HSLhsl(309, 69%, 33%)
HSVhsv(309, 82%, 56%)
CMYKcmyk(0%, 81.8%, 12.6%, 43.9%)
CIE-LABlab(34.11, 56.59, -27.57)
CIE-LCHlch(34.11, 62.95, 334.03°)
OKLaboklab(45.62% 0.1658 -0.0754)
OKLCHoklch(45.62% 0.182 335.6)
XYZxyz(15.3990, 8.0605, 20.1429)
Luminance0.0806 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1A7D #1A8F2C
analogous
#661A8F #8F1A7D #8F1A42
triadic
#8F1A7D #7D8F1A #1A7D8F
tetradic
#8F1A7D #8F661A #1A8F2C #1A428F
square
#8F1A7D #8F661A #1A8F2C #1A428F
split-complementary
#8F1A7D #428F1A #1A8F66
monochromatic
#270722 #5B1150 #8F1A7D #C323AA #DD46C6

Accessibility & contrast

On white

8.04
#8F1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8F1A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F1A7D
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1A7D#FFFFFF#000000##FFFFFF
##8F1A7D1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4580
Deuteranopia (green-blind)
#47567A
Tritanopia (blue-blind)
#97254B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8f1a7d;
/* rgb */ color: rgb(143, 26, 125);
/* oklch */ color: oklch(45.6% 0.182 335.6);
Tailwind
colors: {
  custom: {
    50: '#b466a3',
    500: '#8f1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #8f1a7d;
$custom-light: #b466a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1a7d",
  "rgb": {
    "r": 143,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 309.231,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45624,
    "c": 0.18214,
    "h": 335.6
  },
  "luminance": 0.08059
}

Semantic roles & 50–950 ramp

primary
#8F1A7D
secondary
#46BF59
accent
#EC573C
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #8F1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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