#8D1FA7#8D1FA7

#8D1FA7 is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.3% C 0.209 H 318.8°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8D1FA7
RGBrgb(141, 31, 167)
HSLhsl(289, 69%, 39%)
HSVhsv(289, 81%, 65%)
CMYKcmyk(15.6%, 81.4%, 0%, 34.5%)
CIE-LABlab(36.81, 61.89, -49.02)
CIE-LCHlch(36.81, 78.95, 321.62°)
OKLaboklab(48.3% 0.1574 -0.1379)
OKLCHoklch(48.3% 0.209 318.8)
XYZxyz(18.4486, 9.4336, 37.4008)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1FA7 #39A71F
analogous
#491FA7 #8D1FA7 #A71F7D
triadic
#8D1FA7 #A78D1F #1FA78D
tetradic
#8D1FA7 #A7491F #39A71F #1F7DA7
square
#8D1FA7 #A7491F #39A71F #1F7DA7
split-complementary
#8D1FA7 #7DA71F #1FA749
monochromatic
#360C40 #611573 #8D1FA7 #B72BD8 #C85FE1

Accessibility & contrast

On white

7.27
#8D1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D1FA7
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1FA7#FFFFFF#000000##FFFFFF
##8D1FA71.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#285AA4
Tritanopia (blue-blind)
#8C3E64
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8d1fa7;
/* rgb */ color: rgb(141, 31, 167);
/* oklch */ color: oklch(48.3% 0.209 318.8);
Tailwind
colors: {
  custom: {
    50: '#b36ac2',
    500: '#8d1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #8d1fa7;
$custom-light: #b36ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1fa7",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 288.529,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.48295,
    "c": 0.20924,
    "h": 318.8
  },
  "luminance": 0.09433
}

Semantic roles & 50–950 ramp

primary
#8D1FA7
secondary
#70C65C
accent
#EC3C5E
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8D1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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