#8A3DAB#8A3DAB

#8A3DAB is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.1% C 0.177 H 314.2°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#8A3DAB
RGBrgb(138, 61, 171)
HSLhsl(282, 47%, 45%)
HSVhsv(282, 64%, 67%)
CMYKcmyk(19.3%, 64.3%, 0%, 32.9%)
CIE-LABlab(40.71, 50.47, -45.17)
CIE-LCHlch(40.71, 67.73, 318.17°)
OKLaboklab(51.07% 0.1235 -0.1269)
OKLCHoklch(51.07% 0.177 314.2)
XYZxyz(19.4994, 11.6816, 39.7478)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DAB #5EAB3D
analogous
#533DAB #8A3DAB #AB3D95
triadic
#8A3DAB #AB8A3D #3DAB8A
tetradic
#8A3DAB #AB533D #5EAB3D #3D95AB
square
#8A3DAB #AB533D #5EAB3D #3D95AB
split-complementary
#8A3DAB #95AB3D #3DAB53
monochromatic
#411D51 #662D7E #8A3DAB #A75FC6 #C08CD6

Accessibility & contrast

On white

6.29
#8A3DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8A3DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DAB
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DAB#FFFFFF#000000##FFFFFF
##8A3DAB1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5CAE
Deuteranopia (green-blind)
#3962A8
Tritanopia (blue-blind)
#87526E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3dab;
/* rgb */ color: rgb(138, 61, 171);
/* oklch */ color: oklch(51.1% 0.177 314.2);
Tailwind
colors: {
  custom: {
    50: '#af78c4',
    500: '#8a3dab',
    950: '#000000',
  },
}
SCSS
$custom: #8a3dab;
$custom-light: #af78c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3dab",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 171
  },
  "hsl": {
    "h": 282,
    "s": 47.414,
    "l": 45.49
  },
  "oklch": {
    "l": 0.51067,
    "c": 0.17706,
    "h": 314.2
  },
  "luminance": 0.11681
}

Semantic roles & 50–950 ramp

primary
#8A3DAB
secondary
#96C183
accent
#D75179
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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