#8A3DA1#8A3DA1

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

Color values

HEX#8A3DA1
RGBrgb(138, 61, 161)
HSLhsl(286, 45%, 44%)
HSVhsv(286, 62%, 63%)
CMYKcmyk(14.3%, 62.1%, 0%, 36.9%)
CIE-LABlab(40.11, 48.36, -40.16)
CIE-LCHlch(40.11, 62.86, 320.29°)
OKLaboklab(50.44% 0.1235 -0.1123)
OKLCHoklch(50.44% 0.167 317.7)
XYZxyz(18.5821, 11.3147, 34.9164)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DA1 #54A13D
analogous
#583DA1 #8A3DA1 #A13D86
triadic
#8A3DA1 #A18A3D #3DA18A
tetradic
#8A3DA1 #A1583D #54A13D #3D86A1
square
#8A3DA1 #A1583D #54A13D #3D86A1
split-complementary
#8A3DA1 #86A13D #3DA158
monochromatic
#3E1B48 #642C75 #8A3DA1 #A95BC1 #C087D1

Accessibility & contrast

On white

6.44
#8A3DA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A3DA1
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DA1#FFFFFF#000000##FFFFFF
##8A3DA11.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205AA4
Deuteranopia (green-blind)
#41619F
Tritanopia (blue-blind)
#894E69
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3da1;
/* rgb */ color: rgb(138, 61, 161);
/* oklch */ color: oklch(50.4% 0.167 317.7);
Tailwind
colors: {
  custom: {
    50: '#af77bd',
    500: '#8a3da1',
    950: '#000000',
  },
}
SCSS
$custom: #8a3da1;
$custom-light: #af77bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3da1",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 161
  },
  "hsl": {
    "h": 286.2,
    "s": 45.045,
    "l": 43.529
  },
  "oklch": {
    "l": 0.50439,
    "c": 0.16691,
    "h": 317.7
  },
  "luminance": 0.11314
}

Semantic roles & 50–950 ramp

primary
#8A3DA1
secondary
#8CBC7E
accent
#D55371
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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