#8A3DAA#8A3DAA

#8A3DAA is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.0% C 0.176 H 314.5°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#8A3DAA
RGBrgb(138, 61, 170)
HSLhsl(282, 47%, 45%)
HSVhsv(282, 64%, 67%)
CMYKcmyk(18.8%, 64.1%, 0%, 33.3%)
CIE-LABlab(40.64, 50.26, -44.67)
CIE-LCHlch(40.64, 67.24, 318.37°)
OKLaboklab(51% 0.1235 -0.1255)
OKLCHoklch(51% 0.176 314.5)
XYZxyz(19.4045, 11.6437, 39.2477)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DAA #5DAA3D
analogous
#533DAA #8A3DAA #AA3D94
triadic
#8A3DAA #AA8A3D #3DAA8A
tetradic
#8A3DAA #AA533D #5DAA3D #3D94AA
square
#8A3DAA #AA533D #5DAA3D #3D94AA
split-complementary
#8A3DAA #94AA3D #3DAA53
monochromatic
#411D50 #652D7D #8A3DAA #A75FC5 #C08CD6

Accessibility & contrast

On white

6.31
#8A3DAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8A3DAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DAA
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DAA#FFFFFF#000000##FFFFFF
##8A3DAA1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115BAD
Deuteranopia (green-blind)
#3A62A7
Tritanopia (blue-blind)
#87516E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3daa;
/* rgb */ color: rgb(138, 61, 170);
/* oklch */ color: oklch(51.0% 0.176 314.5);
Tailwind
colors: {
  custom: {
    50: '#af78c4',
    500: '#8a3daa',
    950: '#000000',
  },
}
SCSS
$custom: #8a3daa;
$custom-light: #af78c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3daa",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 170
  },
  "hsl": {
    "h": 282.385,
    "s": 47.186,
    "l": 45.294
  },
  "oklch": {
    "l": 0.51003,
    "c": 0.17603,
    "h": 314.5
  },
  "luminance": 0.11643
}

Semantic roles & 50–950 ramp

primary
#8A3DAA
secondary
#95C082
accent
#D75178
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3DAA

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

Preview Lab → · Contrast checker → · Palette generator →

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