#8A3A9B#8A3A9B

#8A3A9B is a mid, vivid purple. Relative luminance 0.108; OKLCH L 49.7% C 0.165 H 320.2°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#8A3A9B
RGBrgb(138, 58, 155)
HSLhsl(289, 46%, 42%)
HSVhsv(289, 63%, 61%)
CMYKcmyk(11%, 62.6%, 0%, 39.2%)
CIE-LABlab(39.24, 48.57, -37.94)
CIE-LCHlch(39.24, 61.63, 322.00°)
OKLaboklab(49.7% 0.1272 -0.1058)
OKLCHoklch(49.7% 0.165 320.2)
XYZxyz(17.9100, 10.7968, 32.1446)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3A9B #4B9B3A
analogous
#5A3A9B #8A3A9B #9B3A7C
triadic
#8A3A9B #9B8A3A #3A9B8A
tetradic
#8A3A9B #9B5A3A #4B9B3A #3A7C9B
square
#8A3A9B #9B5A3A #4B9B3A #3A7C9B
split-complementary
#8A3A9B #7C9B3A #3A9B5A
monochromatic
#3B1942 #62296E #8A3A9B #AC53BF #C280CF

Accessibility & contrast

On white

6.65
#8A3A9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8A3A9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3A9B
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3A9B#FFFFFF#000000##FFFFFF
##8A3A9B1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22579E
Deuteranopia (green-blind)
#425F99
Tritanopia (blue-blind)
#8B4A65
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a3a9b;
/* rgb */ color: rgb(138, 58, 155);
/* oklch */ color: oklch(49.7% 0.165 320.2);
Tailwind
colors: {
  custom: {
    50: '#af75b9',
    500: '#8a3a9b',
    950: '#000000',
  },
}
SCSS
$custom: #8a3a9b;
$custom-light: #af75b9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3a9b",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 155
  },
  "hsl": {
    "h": 289.485,
    "s": 45.54,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49696,
    "c": 0.16541,
    "h": 320.2
  },
  "luminance": 0.10796
}

Semantic roles & 50–950 ramp

primary
#8A3A9B
secondary
#83B978
accent
#D55369
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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