#8A3D9A#8A3D9A

#8A3D9A is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.0% C 0.160 H 320.4°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#8A3D9A
RGBrgb(138, 61, 154)
HSLhsl(290, 43%, 42%)
HSVhsv(290, 60%, 60%)
CMYKcmyk(10.4%, 60.4%, 0%, 39.6%)
CIE-LABlab(39.71, 46.92, -36.59)
CIE-LCHlch(39.71, 59.50, 322.06°)
OKLaboklab(50.02% 0.1233 -0.1019)
OKLCHoklch(50.02% 0.16 320.4)
XYZxyz(17.9820, 11.0747, 31.7560)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3D9A #4D9A3D
analogous
#5B3D9A #8A3D9A #9A3D7C
triadic
#8A3D9A #9A8A3D #3D9A8A
tetradic
#8A3D9A #9A5B3D #4D9A3D #3D7C9A
square
#8A3D9A #9A5B3D #4D9A3D #3D7C9A
split-complementary
#8A3D9A #7C9A3D #3D9A5B
monochromatic
#3B1A42 #632C6E #8A3D9A #AB58BD #C183CE

Accessibility & contrast

On white

6.53
#8A3D9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8A3D9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3D9A
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3D9A#FFFFFF#000000##FFFFFF
##8A3D9A1.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28589D
Deuteranopia (green-blind)
#456098
Tritanopia (blue-blind)
#8B4B66
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3d9a;
/* rgb */ color: rgb(138, 61, 154);
/* oklch */ color: oklch(50.0% 0.160 320.4);
Tailwind
colors: {
  custom: {
    50: '#af77b8',
    500: '#8a3d9a',
    950: '#000000',
  },
}
SCSS
$custom: #8a3d9a;
$custom-light: #af77b8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3d9a",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 154
  },
  "hsl": {
    "h": 289.677,
    "s": 43.256,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5002,
    "c": 0.15992,
    "h": 320.4
  },
  "luminance": 0.11074
}

Semantic roles & 50–950 ramp

primary
#8A3D9A
secondary
#85B87B
accent
#D3556B
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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