#8A3A9A#8A3A9A

#8A3A9A is a mid, vivid purple. Relative luminance 0.108; OKLCH L 49.6% C 0.164 H 320.6°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8A3A9A
RGBrgb(138, 58, 154)
HSLhsl(290, 45%, 42%)
HSVhsv(290, 62%, 60%)
CMYKcmyk(10.4%, 62.3%, 0%, 39.6%)
CIE-LABlab(39.18, 48.37, -37.42)
CIE-LCHlch(39.18, 61.15, 322.27°)
OKLaboklab(49.64% 0.1271 -0.1043)
OKLCHoklch(49.64% 0.164 320.6)
XYZxyz(17.8263, 10.7633, 31.7041)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3A9A #4A9A3A
analogous
#5A3A9A #8A3A9A #9A3A7A
triadic
#8A3A9A #9A8A3A #3A9A8A
tetradic
#8A3A9A #9A5A3A #4A9A3A #3A7A9A
square
#8A3A9A #9A5A3A #4A9A3A #3A7A9A
split-complementary
#8A3A9A #7A9A3A #3A9A5A
monochromatic
#3A1941 #62296E #8A3A9A #AC53BE #C27FCF

Accessibility & contrast

On white

6.66
#8A3A9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8A3A9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3A9A
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3A9A#FFFFFF#000000##FFFFFF
##8A3A9A1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23579D
Deuteranopia (green-blind)
#435F98
Tritanopia (blue-blind)
#8B4964
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a3a9a;
/* rgb */ color: rgb(138, 58, 154);
/* oklch */ color: oklch(49.6% 0.164 320.6);
Tailwind
colors: {
  custom: {
    50: '#af75b8',
    500: '#8a3a9a',
    950: '#000000',
  },
}
SCSS
$custom: #8a3a9a;
$custom-light: #af75b8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3a9a",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 154
  },
  "hsl": {
    "h": 290,
    "s": 45.283,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49636,
    "c": 0.16444,
    "h": 320.6
  },
  "luminance": 0.10762
}

Semantic roles & 50–950 ramp

primary
#8A3A9A
secondary
#82B977
accent
#D55369
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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