#8A3DAE#8A3DAE

#8A3DAE is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.3% C 0.180 H 313.2°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8A3DAE
RGBrgb(138, 61, 174)
HSLhsl(281, 48%, 46%)
HSVhsv(281, 65%, 68%)
CMYKcmyk(20.7%, 64.9%, 0%, 31.8%)
CIE-LABlab(40.89, 51.12, -46.65)
CIE-LCHlch(40.89, 69.21, 317.62°)
OKLaboklab(51.26% 0.1234 -0.1313)
OKLCHoklch(51.26% 0.18 313.2)
XYZxyz(19.7886, 11.7973, 41.2709)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DAE #61AE3D
analogous
#513DAE #8A3DAE #AE3D99
triadic
#8A3DAE #AE8A3D #3DAE8A
tetradic
#8A3DAE #AE513D #61AE3D #3D99AE
square
#8A3DAE #AE513D #61AE3D #3D99AE
split-complementary
#8A3DAE #99AE3D #3DAE51
monochromatic
#421D53 #662D81 #8A3DAE #A761C8 #C08ED7

Accessibility & contrast

On white

6.25
#8A3DAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8A3DAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DAE
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DAE#FFFFFF#000000##FFFFFF
##8A3DAE1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#045CB1
Deuteranopia (green-blind)
#3662AB
Tritanopia (blue-blind)
#865370
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3dae;
/* rgb */ color: rgb(138, 61, 174);
/* oklch */ color: oklch(51.3% 0.180 313.2);
Tailwind
colors: {
  custom: {
    50: '#af78c7',
    500: '#8a3dae',
    950: '#000000',
  },
}
SCSS
$custom: #8a3dae;
$custom-light: #af78c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3dae",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 174
  },
  "hsl": {
    "h": 280.885,
    "s": 48.085,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51262,
    "c": 0.18012,
    "h": 313.2
  },
  "luminance": 0.11797
}

Semantic roles & 50–950 ramp

primary
#8A3DAE
secondary
#98C285
accent
#D8507B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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