#8B1D9A#8B1D9A

#8B1D9A is a mid, vivid purple. Relative luminance 0.087; OKLCH L 47.0% C 0.200 H 322.5°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#8B1D9A
RGBrgb(139, 29, 154)
HSLhsl(293, 68%, 36%)
HSVhsv(293, 81%, 60%)
CMYKcmyk(9.7%, 81.2%, 0%, 39.6%)
CIE-LABlab(35.40, 59.70, -43.44)
CIE-LCHlch(35.40, 73.83, 323.96°)
OKLaboklab(46.96% 0.1583 -0.1216)
OKLCHoklch(46.96% 0.2 322.5)
XYZxyz(16.9190, 8.7018, 31.3540)
Luminance0.0870 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1D9A #2C9A1D
analogous
#4C1D9A #8B1D9A #9A1D6A
triadic
#8B1D9A #9A8B1D #1D9A8B
tetradic
#8B1D9A #9A4C1D #2C9A1D #1D6A9A
square
#8B1D9A #9A4C1D #2C9A1D #1D6A9A
split-complementary
#8B1D9A #6A9A1D #1D9A4C
monochromatic
#2E0A33 #5D1366 #8B1D9A #B927CE #CE53DF

Accessibility & contrast

On white

7.66
#8B1D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8B1D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1D9A
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1D9A#FFFFFF#000000##FFFFFF
##8B1D9A1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#325797
Tritanopia (blue-blind)
#8D385C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b1d9a;
/* rgb */ color: rgb(139, 29, 154);
/* oklch */ color: oklch(47.0% 0.200 322.5);
Tailwind
colors: {
  custom: {
    50: '#b168b8',
    500: '#8b1d9a',
    950: '#000000',
  },
}
SCSS
$custom: #8b1d9a;
$custom-light: #b168b8;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1d9a",
  "rgb": {
    "r": 139,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 292.8,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46964,
    "c": 0.19959,
    "h": 322.5
  },
  "luminance": 0.08701
}

Semantic roles & 50–950 ramp

primary
#8B1D9A
secondary
#5FC251
accent
#EB3D52
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B1D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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