#8A3EA1#8A3EA1

#8A3EA1 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.6% C 0.165 H 317.6°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#8A3EA1
RGBrgb(138, 62, 161)
HSLhsl(286, 44%, 44%)
HSVhsv(286, 61%, 63%)
CMYKcmyk(14.3%, 61.5%, 0%, 36.9%)
CIE-LABlab(40.28, 47.87, -39.88)
CIE-LCHlch(40.28, 62.31, 320.21°)
OKLaboklab(50.57% 0.1222 -0.1115)
OKLCHoklch(50.57% 0.165 317.6)
XYZxyz(18.6360, 11.4225, 34.9344)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EA1 #55A13E
analogous
#583EA1 #8A3EA1 #A13E86
triadic
#8A3EA1 #A18A3E #3EA18A
tetradic
#8A3EA1 #A1583E #55A13E #3E86A1
square
#8A3EA1 #A1583E #55A13E #3E86A1
split-complementary
#8A3EA1 #86A13E #3EA158
monochromatic
#3E1C49 #642D75 #8A3EA1 #A95CC0 #C088D1

Accessibility & contrast

On white

6.39
#8A3EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A3EA1
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EA1#FFFFFF#000000##FFFFFF
##8A3EA11.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225AA4
Deuteranopia (green-blind)
#41619F
Tritanopia (blue-blind)
#894F6A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3ea1;
/* rgb */ color: rgb(138, 62, 161);
/* oklch */ color: oklch(50.6% 0.165 317.6);
Tailwind
colors: {
  custom: {
    50: '#af78bd',
    500: '#8a3ea1',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ea1;
$custom-light: #af78bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ea1",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 161
  },
  "hsl": {
    "h": 286.061,
    "s": 44.395,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50568,
    "c": 0.16542,
    "h": 317.6
  },
  "luminance": 0.11422
}

Semantic roles & 50–950 ramp

primary
#8A3EA1
secondary
#8DBC7F
accent
#D45472
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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