#8A3DA0#8A3DA0

#8A3DA0 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.4% C 0.166 H 318.1°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8A3DA0
RGBrgb(138, 61, 160)
HSLhsl(287, 45%, 43%)
HSVhsv(287, 62%, 63%)
CMYKcmyk(13.8%, 61.9%, 0%, 37.3%)
CIE-LABlab(40.05, 48.15, -39.65)
CIE-LCHlch(40.05, 62.38, 320.53°)
OKLaboklab(50.38% 0.1235 -0.1108)
OKLCHoklch(50.38% 0.166 318.1)
XYZxyz(18.4943, 11.2796, 34.4539)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DA0 #53A03D
analogous
#593DA0 #8A3DA0 #A03D84
triadic
#8A3DA0 #A08A3D #3DA08A
tetradic
#8A3DA0 #A0593D #53A03D #3D84A0
square
#8A3DA0 #A0593D #53A03D #3D84A0
split-complementary
#8A3DA0 #84A03D #3DA059
monochromatic
#3E1B47 #642C74 #8A3DA0 #A95AC0 #C086D1

Accessibility & contrast

On white

6.45
#8A3DA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8A3DA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DA0
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DA0#FFFFFF#000000##FFFFFF
##8A3DA01.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2259A3
Deuteranopia (green-blind)
#41619E
Tritanopia (blue-blind)
#8A4E69
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3da0;
/* rgb */ color: rgb(138, 61, 160);
/* oklch */ color: oklch(50.4% 0.166 318.1);
Tailwind
colors: {
  custom: {
    50: '#af77bc',
    500: '#8a3da0',
    950: '#000000',
  },
}
SCSS
$custom: #8a3da0;
$custom-light: #af77bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3da0",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 160
  },
  "hsl": {
    "h": 286.667,
    "s": 44.796,
    "l": 43.333
  },
  "oklch": {
    "l": 0.50378,
    "c": 0.1659,
    "h": 318.1
  },
  "luminance": 0.11279
}

Semantic roles & 50–950 ramp

primary
#8A3DA0
secondary
#8BBB7D
accent
#D45370
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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