#8A3DA8#8A3DA8

#8A3DA8 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 50.9% C 0.174 H 315.2°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#8A3DA8
RGBrgb(138, 61, 168)
HSLhsl(283, 47%, 45%)
HSVhsv(283, 64%, 66%)
CMYKcmyk(17.9%, 63.7%, 0%, 34.1%)
CIE-LABlab(40.52, 49.83, -43.68)
CIE-LCHlch(40.52, 66.26, 318.76°)
OKLaboklab(50.88% 0.1235 -0.1225)
OKLCHoklch(50.88% 0.174 315.2)
XYZxyz(19.2167, 11.5686, 38.2589)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DA8 #5BA83D
analogous
#553DA8 #8A3DA8 #A83D90
triadic
#8A3DA8 #A88A3D #3DA88A
tetradic
#8A3DA8 #A8553D #5BA83D #3D90A8
square
#8A3DA8 #A8553D #5BA83D #3D90A8
split-complementary
#8A3DA8 #90A83D #3DA855
monochromatic
#401C4E #652D7B #8A3DA8 #A85EC4 #C08BD5

Accessibility & contrast

On white

6.34
#8A3DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8A3DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DA8
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DA8#FFFFFF#000000##FFFFFF
##8A3DA81.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155BAB
Deuteranopia (green-blind)
#3B62A5
Tritanopia (blue-blind)
#88516D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3da8;
/* rgb */ color: rgb(138, 61, 168);
/* oklch */ color: oklch(50.9% 0.174 315.2);
Tailwind
colors: {
  custom: {
    50: '#af77c2',
    500: '#8a3da8',
    950: '#000000',
  },
}
SCSS
$custom: #8a3da8;
$custom-light: #af77c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3da8",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 168
  },
  "hsl": {
    "h": 283.178,
    "s": 46.725,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50875,
    "c": 0.17399,
    "h": 315.2
  },
  "luminance": 0.11568
}

Semantic roles & 50–950 ramp

primary
#8A3DA8
secondary
#93BF81
accent
#D65177
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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