#8A3189#8A3189

#8A3189 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.6% C 0.162 H 328.2°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#8A3189
RGBrgb(138, 49, 137)
HSLhsl(301, 48%, 37%)
HSVhsv(301, 64%, 54%)
CMYKcmyk(0%, 64.5%, 0.7%, 45.9%)
CIE-LABlab(36.76, 49.22, -30.90)
CIE-LCHlch(36.76, 58.12, 327.88°)
OKLaboklab(47.57% 0.1376 -0.0853)
OKLCHoklch(47.57% 0.162 328.2)
XYZxyz(16.0947, 9.4071, 24.6301)
Luminance0.0941 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3189 #318A32
analogous
#5F318A #8A3189 #8A315D
triadic
#8A3189 #898A31 #31898A
tetradic
#8A3189 #8A5F31 #318A32 #315D8A
square
#8A3189 #8A5F31 #318A32 #315D8A
split-complementary
#8A3189 #5D8A31 #318A5F
monochromatic
#30112F #5D215C #8A3189 #B741B6 #CA6BC9

Accessibility & contrast

On white

7.29
#8A3189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A3189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3189
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3189#FFFFFF#000000##FFFFFF
##8A31891.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264F8C
Deuteranopia (green-blind)
#475B87
Tritanopia (blue-blind)
#8E3C58
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a3189;
/* rgb */ color: rgb(138, 49, 137);
/* oklch */ color: oklch(47.6% 0.162 328.2);
Tailwind
colors: {
  custom: {
    50: '#af70ac',
    500: '#8a3189',
    950: '#000000',
  },
}
SCSS
$custom: #8a3189;
$custom-light: #af70ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3189",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 137
  },
  "hsl": {
    "h": 300.674,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47574,
    "c": 0.16186,
    "h": 328.2
  },
  "luminance": 0.09406
}

Semantic roles & 50–950 ramp

primary
#8A3189
secondary
#65B266
accent
#D75251
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3189

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

Preview Lab → · Contrast checker → · Palette generator →

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