#8A3D9B#8A3D9B

#8A3D9B is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.1% C 0.161 H 320.0°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8A3D9B
RGBrgb(138, 61, 155)
HSLhsl(289, 44%, 42%)
HSVhsv(289, 61%, 61%)
CMYKcmyk(11%, 60.6%, 0%, 39.2%)
CIE-LABlab(39.76, 47.13, -37.10)
CIE-LCHlch(39.76, 59.98, 321.79°)
OKLaboklab(50.08% 0.1233 -0.1034)
OKLCHoklch(50.08% 0.161 320)
XYZxyz(18.0656, 11.1081, 32.1965)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3D9B #4E9B3D
analogous
#5B3D9B #8A3D9B #9B3D7D
triadic
#8A3D9B #9B8A3D #3D9B8A
tetradic
#8A3D9B #9B5B3D #4E9B3D #3D7D9B
square
#8A3D9B #9B5B3D #4E9B3D #3D7D9B
split-complementary
#8A3D9B #7D9B3D #3D9B5B
monochromatic
#3C1A43 #632C6F #8A3D9B #AB58BD #C184CF

Accessibility & contrast

On white

6.52
#8A3D9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8A3D9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3D9B
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3D9B#FFFFFF#000000##FFFFFF
##8A3D9B1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27589E
Deuteranopia (green-blind)
#456099
Tritanopia (blue-blind)
#8B4C66
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3d9b;
/* rgb */ color: rgb(138, 61, 155);
/* oklch */ color: oklch(50.1% 0.161 320.0);
Tailwind
colors: {
  custom: {
    50: '#af77b9',
    500: '#8a3d9b',
    950: '#000000',
  },
}
SCSS
$custom: #8a3d9b;
$custom-light: #af77b9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3d9b",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 155
  },
  "hsl": {
    "h": 289.149,
    "s": 43.519,
    "l": 42.353
  },
  "oklch": {
    "l": 0.50078,
    "c": 0.1609,
    "h": 320
  },
  "luminance": 0.11107
}

Semantic roles & 50–950 ramp

primary
#8A3D9B
secondary
#86B97B
accent
#D3556B
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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