#8A3DA7#8A3DA7

#8A3DA7 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 50.8% C 0.173 H 315.6°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8A3DA7
RGBrgb(138, 61, 167)
HSLhsl(284, 46%, 45%)
HSVhsv(284, 63%, 65%)
CMYKcmyk(17.4%, 63.5%, 0%, 34.5%)
CIE-LABlab(40.46, 49.62, -43.18)
CIE-LCHlch(40.46, 65.78, 318.97°)
OKLaboklab(50.81% 0.1235 -0.1211)
OKLCHoklch(50.81% 0.173 315.6)
XYZxyz(19.1239, 11.5314, 37.7701)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DA7 #5AA73D
analogous
#553DA7 #8A3DA7 #A73D8F
triadic
#8A3DA7 #A78A3D #3DA78A
tetradic
#8A3DA7 #A7553D #5AA73D #3D8FA7
square
#8A3DA7 #A7553D #5AA73D #3D8FA7
split-complementary
#8A3DA7 #8FA73D #3DA755
monochromatic
#401C4D #652D7A #8A3DA7 #A85DC4 #C08AD4

Accessibility & contrast

On white

6.35
#8A3DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A3DA7
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DA7#FFFFFF#000000##FFFFFF
##8A3DA71.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175BAA
Deuteranopia (green-blind)
#3C62A4
Tritanopia (blue-blind)
#88506C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3da7;
/* rgb */ color: rgb(138, 61, 167);
/* oklch */ color: oklch(50.8% 0.173 315.6);
Tailwind
colors: {
  custom: {
    50: '#af77c2',
    500: '#8a3da7',
    950: '#000000',
  },
}
SCSS
$custom: #8a3da7;
$custom-light: #af77c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3da7",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 167
  },
  "hsl": {
    "h": 283.585,
    "s": 46.491,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50812,
    "c": 0.17297,
    "h": 315.6
  },
  "luminance": 0.11531
}

Semantic roles & 50–950 ramp

primary
#8A3DA7
secondary
#92BF81
accent
#D65276
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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