#8D3391#8D3391

#8D3391 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.7% C 0.168 H 326.0°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#8D3391
RGBrgb(141, 51, 145)
HSLhsl(297, 48%, 38%)
HSVhsv(297, 65%, 57%)
CMYKcmyk(2.8%, 64.8%, 0%, 43.1%)
CIE-LABlab(37.98, 50.58, -33.84)
CIE-LCHlch(37.98, 60.86, 326.22°)
OKLaboklab(48.7% 0.1391 -0.0937)
OKLCHoklch(48.7% 0.168 326)
XYZxyz(17.2788, 10.0758, 27.8173)
Luminance0.1008 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D3391 #379133
analogous
#5E3391 #8D3391 #913366
triadic
#8D3391 #918D33 #33918D
tetradic
#8D3391 #915E33 #379133 #336691
square
#8D3391 #915E33 #379133 #336691
split-complementary
#8D3391 #669133 #33915E
monochromatic
#351336 #612364 #8D3391 #B844BD #C971CD

Accessibility & contrast

On white

6.97
#8D3391 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8D3391 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D3391
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D3391#FFFFFF#000000##FFFFFF
##8D33911.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245294
Deuteranopia (green-blind)
#465D8F
Tritanopia (blue-blind)
#91405D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8d3391;
/* rgb */ color: rgb(141, 51, 145);
/* oklch */ color: oklch(48.7% 0.168 326.0);
Tailwind
colors: {
  custom: {
    50: '#b172b1',
    500: '#8d3391',
    950: '#000000',
  },
}
SCSS
$custom: #8d3391;
$custom-light: #b172b1;
$custom-dark: #000000;
JSON
{
  "hex": "#8d3391",
  "rgb": {
    "r": 141,
    "g": 51,
    "b": 145
  },
  "hsl": {
    "h": 297.447,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.48695,
    "c": 0.16774,
    "h": 326
  },
  "luminance": 0.10075
}

Semantic roles & 50–950 ramp

primary
#8D3391
secondary
#6EB56B
accent
#D85056
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8D3391

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

Preview Lab → · Contrast checker → · Palette generator →

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