#8A3DA5#8A3DA5

#8A3DA5 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 50.7% C 0.171 H 316.3°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8A3DA5
RGBrgb(138, 61, 165)
HSLhsl(284, 46%, 44%)
HSVhsv(284, 63%, 65%)
CMYKcmyk(16.4%, 63%, 0%, 35.3%)
CIE-LABlab(40.34, 49.20, -42.18)
CIE-LCHlch(40.34, 64.80, 319.39°)
OKLaboklab(50.69% 0.1235 -0.1182)
OKLCHoklch(50.69% 0.171 316.3)
XYZxyz(18.9405, 11.4581, 36.8039)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DA5 #58A53D
analogous
#563DA5 #8A3DA5 #A53D8C
triadic
#8A3DA5 #A58A3D #3DA58A
tetradic
#8A3DA5 #A5563D #58A53D #3D8CA5
square
#8A3DA5 #A5563D #58A53D #3D8CA5
split-complementary
#8A3DA5 #8CA53D #3DA556
monochromatic
#3F1C4C #652C78 #8A3DA5 #A85CC3 #C089D3

Accessibility & contrast

On white

6.38
#8A3DA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8A3DA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DA5
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DA5#FFFFFF#000000##FFFFFF
##8A3DA51.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5AA8
Deuteranopia (green-blind)
#3E61A2
Tritanopia (blue-blind)
#894F6B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3da5;
/* rgb */ color: rgb(138, 61, 165);
/* oklch */ color: oklch(50.7% 0.171 316.3);
Tailwind
colors: {
  custom: {
    50: '#af77c0',
    500: '#8a3da5',
    950: '#000000',
  },
}
SCSS
$custom: #8a3da5;
$custom-light: #af77c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3da5",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 165
  },
  "hsl": {
    "h": 284.423,
    "s": 46.018,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50686,
    "c": 0.17096,
    "h": 316.3
  },
  "luminance": 0.11457
}

Semantic roles & 50–950 ramp

primary
#8A3DA5
secondary
#90BE80
accent
#D65274
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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