#8A3D9F#8A3D9F

#8A3D9F is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.3% C 0.165 H 318.5°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#8A3D9F
RGBrgb(138, 61, 159)
HSLhsl(287, 45%, 43%)
HSVhsv(287, 62%, 62%)
CMYKcmyk(13.2%, 61.6%, 0%, 37.6%)
CIE-LABlab(39.99, 47.95, -39.15)
CIE-LCHlch(39.99, 61.90, 320.77°)
OKLaboklab(50.32% 0.1235 -0.1093)
OKLCHoklch(50.32% 0.165 318.5)
XYZxyz(18.4071, 11.2447, 33.9950)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3D9F #529F3D
analogous
#593D9F #8A3D9F #9F3D83
triadic
#8A3D9F #9F8A3D #3D9F8A
tetradic
#8A3D9F #9F593D #529F3D #3D839F
square
#8A3D9F #9F593D #529F3D #3D839F
split-complementary
#8A3D9F #839F3D #3D9F59
monochromatic
#3D1B47 #642C73 #8A3D9F #AA5AC0 #C186D1

Accessibility & contrast

On white

6.46
#8A3D9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8A3D9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3D9F
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3D9F#FFFFFF#000000##FFFFFF
##8A3D9F1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2359A2
Deuteranopia (green-blind)
#42619D
Tritanopia (blue-blind)
#8A4D68
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3d9f;
/* rgb */ color: rgb(138, 61, 159);
/* oklch */ color: oklch(50.3% 0.165 318.5);
Tailwind
colors: {
  custom: {
    50: '#af77bc',
    500: '#8a3d9f',
    950: '#000000',
  },
}
SCSS
$custom: #8a3d9f;
$custom-light: #af77bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3d9f",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 159
  },
  "hsl": {
    "h": 287.143,
    "s": 44.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50318,
    "c": 0.1649,
    "h": 318.5
  },
  "luminance": 0.11244
}

Semantic roles & 50–950 ramp

primary
#8A3D9F
secondary
#8ABB7D
accent
#D4546F
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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