#8A3486#8A3486

#8A3486 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 47.8% C 0.155 H 329.5°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#8A3486
RGBrgb(138, 52, 134)
HSLhsl(303, 45%, 37%)
HSVhsv(303, 62%, 54%)
CMYKcmyk(0%, 62.3%, 2.9%, 45.9%)
CIE-LABlab(37.08, 47.35, -28.54)
CIE-LCHlch(37.08, 55.29, 328.92°)
OKLaboklab(47.76% 0.1335 -0.0785)
OKLCHoklch(47.76% 0.155 329.5)
XYZxyz(16.0122, 9.5816, 23.5557)
Luminance0.0958 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3486 #348A38
analogous
#63348A #8A3486 #8A345B
triadic
#8A3486 #868A34 #34868A
tetradic
#8A3486 #8A6334 #348A38 #345B8A
square
#8A3486 #8A6334 #348A38 #345B8A
split-complementary
#8A3486 #5B8A34 #348A63
monochromatic
#311330 #5E235B #8A3486 #B645B1 #C96FC5

Accessibility & contrast

On white

7.20
#8A3486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8A3486 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3486
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3486#FFFFFF#000000##FFFFFF
##8A34861.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5088
Deuteranopia (green-blind)
#4A5B84
Tritanopia (blue-blind)
#8F3D58
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a3486;
/* rgb */ color: rgb(138, 52, 134);
/* oklch */ color: oklch(47.8% 0.155 329.5);
Tailwind
colors: {
  custom: {
    50: '#af71a9',
    500: '#8a3486',
    950: '#000000',
  },
}
SCSS
$custom: #8a3486;
$custom-light: #af71a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3486",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 134
  },
  "hsl": {
    "h": 302.791,
    "s": 45.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47758,
    "c": 0.15489,
    "h": 329.5
  },
  "luminance": 0.0958
}

Semantic roles & 50–950 ramp

primary
#8A3486
secondary
#69B16C
accent
#D55953
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3486

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

Preview Lab → · Contrast checker → · Palette generator →

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