#8A3391#8A3391

#8A3391 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.3% C 0.166 H 324.7°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#8A3391
RGBrgb(138, 51, 145)
HSLhsl(296, 48%, 38%)
HSVhsv(296, 65%, 57%)
CMYKcmyk(4.8%, 64.8%, 0%, 43.1%)
CIE-LABlab(37.51, 49.82, -34.61)
CIE-LCHlch(37.51, 60.66, 325.21°)
OKLaboklab(48.26% 0.1356 -0.096)
OKLCHoklch(48.26% 0.166 324.7)
XYZxyz(16.7755, 9.8162, 27.7937)
Luminance0.0982 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3391 #3A9133
analogous
#5B3391 #8A3391 #913369
triadic
#8A3391 #918A33 #33918A
tetradic
#8A3391 #915B33 #3A9133 #336991
square
#8A3391 #915B33 #3A9133 #336991
split-complementary
#8A3391 #699133 #33915B
monochromatic
#341336 #5F2364 #8A3391 #B444BD #C671CD

Accessibility & contrast

On white

7.09
#8A3391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8A3391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3391
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3391#FFFFFF#000000##FFFFFF
##8A33911.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215194
Deuteranopia (green-blind)
#445C8F
Tritanopia (blue-blind)
#8D415D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a3391;
/* rgb */ color: rgb(138, 51, 145);
/* oklch */ color: oklch(48.3% 0.166 324.7);
Tailwind
colors: {
  custom: {
    50: '#af71b1',
    500: '#8a3391',
    950: '#000000',
  },
}
SCSS
$custom: #8a3391;
$custom-light: #af71b1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3391",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 145
  },
  "hsl": {
    "h": 295.532,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.48263,
    "c": 0.16612,
    "h": 324.7
  },
  "luminance": 0.09815
}

Semantic roles & 50–950 ramp

primary
#8A3391
secondary
#70B56B
accent
#D8505A
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3391

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

Preview Lab → · Contrast checker → · Palette generator →

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