#8A3186#8A3186

#8A3186 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.4% C 0.159 H 329.6°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#8A3186
RGBrgb(138, 49, 134)
HSLhsl(303, 48%, 37%)
HSVhsv(303, 64%, 54%)
CMYKcmyk(0%, 64.5%, 2.9%, 45.9%)
CIE-LABlab(36.60, 48.69, -29.30)
CIE-LCHlch(36.60, 56.83, 328.96°)
OKLaboklab(47.41% 0.1373 -0.0807)
OKLCHoklch(47.41% 0.159 329.6)
XYZxyz(15.8825, 9.3222, 23.5125)
Luminance0.0932 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3186 #318A35
analogous
#62318A #8A3186 #8A315A
triadic
#8A3186 #868A31 #31868A
tetradic
#8A3186 #8A6231 #318A35 #315A8A
square
#8A3186 #8A6231 #318A35 #315A8A
split-complementary
#8A3186 #5A8A31 #318A62
monochromatic
#30112E #5D215A #8A3186 #B741B2 #CA6BC6

Accessibility & contrast

On white

7.33
#8A3186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8A3186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3186
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3186#FFFFFF#000000##FFFFFF
##8A31861.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294E89
Deuteranopia (green-blind)
#485A84
Tritanopia (blue-blind)
#8F3B57
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a3186;
/* rgb */ color: rgb(138, 49, 134);
/* oklch */ color: oklch(47.4% 0.159 329.6);
Tailwind
colors: {
  custom: {
    50: '#af70a9',
    500: '#8a3186',
    950: '#000000',
  },
}
SCSS
$custom: #8a3186;
$custom-light: #af70a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3186",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 134
  },
  "hsl": {
    "h": 302.697,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47407,
    "c": 0.15927,
    "h": 329.6
  },
  "luminance": 0.09321
}

Semantic roles & 50–950 ramp

primary
#8A3186
secondary
#65B268
accent
#D75751
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3186

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

Preview Lab → · Contrast checker → · Palette generator →

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