#8A3DA4#8A3DA4

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

Color values

HEX#8A3DA4
RGBrgb(138, 61, 164)
HSLhsl(285, 46%, 44%)
HSVhsv(285, 63%, 64%)
CMYKcmyk(15.9%, 62.8%, 0%, 35.7%)
CIE-LABlab(40.28, 48.99, -41.68)
CIE-LCHlch(40.28, 64.32, 319.61°)
OKLaboklab(50.62% 0.1235 -0.1167)
OKLCHoklch(50.62% 0.17 316.6)
XYZxyz(18.8498, 11.4218, 36.3265)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DA4 #57A43D
analogous
#563DA4 #8A3DA4 #A43D8B
triadic
#8A3DA4 #A48A3D #3DA48A
tetradic
#8A3DA4 #A4563D #57A43D #3D8BA4
square
#8A3DA4 #A4563D #57A43D #3D8BA4
split-complementary
#8A3DA4 #8BA43D #3DA456
monochromatic
#3F1C4B #642C77 #8A3DA4 #A85CC2 #C088D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A3DA4#FFFFFF#000000##FFFFFF
##8A3DA41.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)
#1C5AA7
Deuteranopia (green-blind)
#3E61A1
Tritanopia (blue-blind)
#894F6B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3da4;
/* rgb */ color: rgb(138, 61, 164);
/* oklch */ color: oklch(50.6% 0.170 316.6);
Tailwind
colors: {
  custom: {
    50: '#af77bf',
    500: '#8a3da4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3da4;
$custom-light: #af77bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3da4",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 164
  },
  "hsl": {
    "h": 284.854,
    "s": 45.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50624,
    "c": 0.16994,
    "h": 316.6
  },
  "luminance": 0.11421
}

Semantic roles & 50–950 ramp

primary
#8A3DA4
secondary
#8FBD7F
accent
#D55273
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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