#8A3EA0#8A3EA0

#8A3EA0 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.5% C 0.164 H 318.0°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#8A3EA0
RGBrgb(138, 62, 160)
HSLhsl(287, 44%, 44%)
HSVhsv(287, 61%, 63%)
CMYKcmyk(13.8%, 61.2%, 0%, 37.3%)
CIE-LABlab(40.23, 47.67, -39.37)
CIE-LCHlch(40.23, 61.82, 320.44°)
OKLaboklab(50.51% 0.1222 -0.11)
OKLCHoklch(50.51% 0.164 318)
XYZxyz(18.5481, 11.3873, 34.4718)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EA0 #54A03E
analogous
#593EA0 #8A3EA0 #A03E85
triadic
#8A3EA0 #A08A3E #3EA08A
tetradic
#8A3EA0 #A0593E #54A03E #3E85A0
square
#8A3EA0 #A0593E #54A03E #3E85A0
split-complementary
#8A3EA0 #85A03E #3EA059
monochromatic
#3E1C48 #642D74 #8A3EA0 #A95CC0 #C088D1

Accessibility & contrast

On white

6.41
#8A3EA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8A3EA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EA0
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EA0#FFFFFF#000000##FFFFFF
##8A3EA01.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245AA3
Deuteranopia (green-blind)
#42619E
Tritanopia (blue-blind)
#8A4E69
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3ea0;
/* rgb */ color: rgb(138, 62, 160);
/* oklch */ color: oklch(50.5% 0.164 318.0);
Tailwind
colors: {
  custom: {
    50: '#af78bc',
    500: '#8a3ea0',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ea0;
$custom-light: #af78bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ea0",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 160
  },
  "hsl": {
    "h": 286.531,
    "s": 44.144,
    "l": 43.529
  },
  "oklch": {
    "l": 0.50508,
    "c": 0.1644,
    "h": 318
  },
  "luminance": 0.11387
}

Semantic roles & 50–950 ramp

primary
#8A3EA0
secondary
#8CBB7F
accent
#D45471
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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