#8A3191#8A3191

#8A3191 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.0% C 0.169 H 324.8°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#8A3191
RGBrgb(138, 49, 145)
HSLhsl(296, 49%, 38%)
HSVhsv(296, 66%, 57%)
CMYKcmyk(4.8%, 66.2%, 0%, 43.1%)
CIE-LABlab(37.20, 50.69, -35.11)
CIE-LCHlch(37.20, 61.66, 325.29°)
OKLaboklab(48.04% 0.138 -0.0975)
OKLCHoklch(48.04% 0.169 324.8)
XYZxyz(16.6900, 9.6452, 27.7652)
Luminance0.0964 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3191 #389131
analogous
#5A3191 #8A3191 #913168
triadic
#8A3191 #918A31 #31918A
tetradic
#8A3191 #915A31 #389131 #316891
square
#8A3191 #915A31 #389131 #316891
split-complementary
#8A3191 #689131 #31915A
monochromatic
#331236 #5E2263 #8A3191 #B541BF #C76ECE

Accessibility & contrast

On white

7.17
#8A3191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8A3191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3191
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3191#FFFFFF#000000##FFFFFF
##8A31911.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5194
Deuteranopia (green-blind)
#425B8F
Tritanopia (blue-blind)
#8D3F5D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a3191;
/* rgb */ color: rgb(138, 49, 145);
/* oklch */ color: oklch(48.0% 0.169 324.8);
Tailwind
colors: {
  custom: {
    50: '#af70b2',
    500: '#8a3191',
    950: '#000000',
  },
}
SCSS
$custom: #8a3191;
$custom-light: #af70b2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3191",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 145
  },
  "hsl": {
    "h": 295.625,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.48037,
    "c": 0.16891,
    "h": 324.8
  },
  "luminance": 0.09644
}

Semantic roles & 50–950 ramp

primary
#8A3191
secondary
#6EB668
accent
#D94F59
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3191

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

Preview Lab → · Contrast checker → · Palette generator →

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