#8A3187#8A3187

#8A3187 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.5% C 0.160 H 329.1°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#8A3187
RGBrgb(138, 49, 135)
HSLhsl(302, 48%, 37%)
HSVhsv(302, 64%, 54%)
CMYKcmyk(0%, 64.5%, 2.2%, 45.9%)
CIE-LABlab(36.65, 48.86, -29.84)
CIE-LCHlch(36.65, 57.25, 328.59°)
OKLaboklab(47.46% 0.1374 -0.0822)
OKLCHoklch(47.46% 0.16 329.1)
XYZxyz(15.9526, 9.3503, 23.8815)
Luminance0.0935 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3187 #318A34
analogous
#61318A #8A3187 #8A315B
triadic
#8A3187 #878A31 #31878A
tetradic
#8A3187 #8A6131 #318A34 #315B8A
square
#8A3187 #8A6131 #318A34 #315B8A
split-complementary
#8A3187 #5B8A31 #318A61
monochromatic
#30112F #5D215B #8A3187 #B741B3 #CA6BC7

Accessibility & contrast

On white

7.32
#8A3187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A3187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3187
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3187#FFFFFF#000000##FFFFFF
##8A31871.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284F8A
Deuteranopia (green-blind)
#485A85
Tritanopia (blue-blind)
#8F3B57
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a3187;
/* rgb */ color: rgb(138, 49, 135);
/* oklch */ color: oklch(47.5% 0.160 329.1);
Tailwind
colors: {
  custom: {
    50: '#af70aa',
    500: '#8a3187',
    950: '#000000',
  },
}
SCSS
$custom: #8a3187;
$custom-light: #af70aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3187",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 135
  },
  "hsl": {
    "h": 302.022,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47462,
    "c": 0.16012,
    "h": 329.1
  },
  "luminance": 0.09349
}

Semantic roles & 50–950 ramp

primary
#8A3187
secondary
#65B267
accent
#D75551
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3187

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

Preview Lab → · Contrast checker → · Palette generator →

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