#8D1B9E#8D1B9E

#8D1B9E is a mid, highly saturated purple. Relative luminance 0.089; OKLCH L 47.4% C 0.205 H 321.9°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#8D1B9E
RGBrgb(141, 27, 158)
HSLhsl(292, 71%, 36%)
HSVhsv(292, 83%, 62%)
CMYKcmyk(10.8%, 82.9%, 0%, 38%)
CIE-LABlab(35.82, 61.33, -45.18)
CIE-LCHlch(35.82, 76.18, 323.62°)
OKLaboklab(47.41% 0.1616 -0.1266)
OKLCHoklch(47.41% 0.205 321.9)
XYZxyz(17.5473, 8.9162, 33.1379)
Luminance0.0891 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1B9E #2C9E1B
analogous
#4C1B9E #8D1B9E #9E1B6E
triadic
#8D1B9E #9E8D1B #1B9E8D
tetradic
#8D1B9E #9E4C1B #2C9E1B #1B6E9E
square
#8D1B9E #9E4C1B #2C9E1B #1B6E9E
split-complementary
#8D1B9E #6E9E1B #1B9E4C
monochromatic
#300935 #5E126A #8D1B9E #BC24D2 #CF52E1

Accessibility & contrast

On white

7.55
#8D1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8D1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1B9E
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1B9E#FFFFFF#000000##FFFFFF
##8D1B9E1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#30589B
Tritanopia (blue-blind)
#8E385E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8d1b9e;
/* rgb */ color: rgb(141, 27, 158);
/* oklch */ color: oklch(47.4% 0.205 321.9);
Tailwind
colors: {
  custom: {
    50: '#b268bb',
    500: '#8d1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #8d1b9e;
$custom-light: #b268bb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1b9e",
  "rgb": {
    "r": 141,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 292.214,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47409,
    "c": 0.20526,
    "h": 321.9
  },
  "luminance": 0.08915
}

Semantic roles & 50–950 ramp

primary
#8D1B9E
secondary
#60C451
accent
#EE3A51
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8D1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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