#8D1FA8#8D1FA8

#8D1FA8 is a mid, highly saturated purple. Relative luminance 0.095; OKLCH L 48.4% C 0.210 H 318.4°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#8D1FA8
RGBrgb(141, 31, 168)
HSLhsl(288, 69%, 39%)
HSVhsv(288, 82%, 66%)
CMYKcmyk(16.1%, 81.5%, 0%, 34.1%)
CIE-LABlab(36.88, 62.07, -49.51)
CIE-LCHlch(36.88, 79.40, 321.42°)
OKLaboklab(48.37% 0.1572 -0.1393)
OKLCHoklch(48.37% 0.21 318.4)
XYZxyz(18.5414, 9.4707, 37.8896)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1FA8 #3AA81F
analogous
#491FA8 #8D1FA8 #A81F7F
triadic
#8D1FA8 #A88D1F #1FA88D
tetradic
#8D1FA8 #A8491F #3AA81F #1F7FA8
square
#8D1FA8 #A8491F #3AA81F #1F7FA8
split-complementary
#8D1FA8 #7FA81F #1FA849
monochromatic
#360C41 #621574 #8D1FA8 #B62CD8 #C860E2

Accessibility & contrast

On white

7.26
#8D1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8D1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1FA8
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1FA8#FFFFFF#000000##FFFFFF
##8D1FA81.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#275AA5
Tritanopia (blue-blind)
#8C3F65
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8d1fa8;
/* rgb */ color: rgb(141, 31, 168);
/* oklch */ color: oklch(48.4% 0.210 318.4);
Tailwind
colors: {
  custom: {
    50: '#b36ac3',
    500: '#8d1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #8d1fa8;
$custom-light: #b36ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1fa8",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 288.175,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48365,
    "c": 0.21006,
    "h": 318.4
  },
  "luminance": 0.0947
}

Semantic roles & 50–950 ramp

primary
#8D1FA8
secondary
#71C65D
accent
#EC3C5F
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8D1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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