#8A3D9C#8A3D9C

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

Color values

HEX#8A3D9C
RGBrgb(138, 61, 156)
HSLhsl(289, 44%, 43%)
HSVhsv(289, 61%, 61%)
CMYKcmyk(11.5%, 60.9%, 0%, 38.8%)
CIE-LABlab(39.82, 47.33, -37.61)
CIE-LCHlch(39.82, 60.46, 321.52°)
OKLaboklab(50.14% 0.1234 -0.1048)
OKLCHoklch(50.14% 0.162 319.6)
XYZxyz(18.1500, 11.1419, 32.6406)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3D9C #4F9C3D
analogous
#5B3D9C #8A3D9C #9C3D7E
triadic
#8A3D9C #9C8A3D #3D9C8A
tetradic
#8A3D9C #9C5B3D #4F9C3D #3D7E9C
square
#8A3D9C #9C5B3D #4F9C3D #3D7E9C
split-complementary
#8A3D9C #7E9C3D #3D9C5B
monochromatic
#3C1B44 #632C70 #8A3D9C #AB58BE #C184CF

Accessibility & contrast

On white

6.51
#8A3D9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8A3D9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3D9C
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3D9C#FFFFFF#000000##FFFFFF
##8A3D9C1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26599F
Deuteranopia (green-blind)
#44619A
Tritanopia (blue-blind)
#8A4C67
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3d9c;
/* rgb */ color: rgb(138, 61, 156);
/* oklch */ color: oklch(50.1% 0.162 319.6);
Tailwind
colors: {
  custom: {
    50: '#af77ba',
    500: '#8a3d9c',
    950: '#000000',
  },
}
SCSS
$custom: #8a3d9c;
$custom-light: #af77ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3d9c",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 156
  },
  "hsl": {
    "h": 288.632,
    "s": 43.779,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50138,
    "c": 0.1619,
    "h": 319.6
  },
  "luminance": 0.11141
}

Semantic roles & 50–950 ramp

primary
#8A3D9C
secondary
#87B97C
accent
#D4546C
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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