#8A3B9D#8A3B9D

#8A3B9D is a mid, vivid purple. Relative luminance 0.110; OKLCH L 49.9% C 0.166 H 319.4°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#8A3B9D
RGBrgb(138, 59, 157)
HSLhsl(288, 45%, 42%)
HSVhsv(288, 62%, 62%)
CMYKcmyk(12.1%, 62.4%, 0%, 38.4%)
CIE-LABlab(39.52, 48.50, -38.69)
CIE-LCHlch(39.52, 62.04, 321.42°)
OKLaboklab(49.94% 0.126 -0.108)
OKLCHoklch(49.94% 0.166 319.4)
XYZxyz(18.1302, 10.9663, 33.0535)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3B9D #4E9D3B
analogous
#593B9D #8A3B9D #9D3B7F
triadic
#8A3B9D #9D8A3B #3B9D8A
tetradic
#8A3B9D #9D593B #4E9D3B #3B7F9D
square
#8A3B9D #9D593B #4E9D3B #3B7F9D
split-complementary
#8A3B9D #7F9D3B #3B9D59
monochromatic
#3C1A44 #632A71 #8A3B9D #AB56BF #C182D0

Accessibility & contrast

On white

6.58
#8A3B9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8A3B9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3B9D
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3B9D#FFFFFF#000000##FFFFFF
##8A3B9D1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2258A0
Deuteranopia (green-blind)
#42609B
Tritanopia (blue-blind)
#8A4B66
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a3b9d;
/* rgb */ color: rgb(138, 59, 157);
/* oklch */ color: oklch(49.9% 0.166 319.4);
Tailwind
colors: {
  custom: {
    50: '#af76ba',
    500: '#8a3b9d',
    950: '#000000',
  },
}
SCSS
$custom: #8a3b9d;
$custom-light: #af76ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3b9d",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 157
  },
  "hsl": {
    "h": 288.367,
    "s": 45.37,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49942,
    "c": 0.1659,
    "h": 319.4
  },
  "luminance": 0.10966
}

Semantic roles & 50–950 ramp

primary
#8A3B9D
secondary
#86BA7A
accent
#D5536C
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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