#8A3A9F#8A3A9F

#8A3A9F is a mid, vivid purple. Relative luminance 0.109; OKLCH L 49.9% C 0.169 H 318.7°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8A3A9F
RGBrgb(138, 58, 159)
HSLhsl(288, 47%, 43%)
HSVhsv(288, 64%, 62%)
CMYKcmyk(13.2%, 63.5%, 0%, 37.6%)
CIE-LABlab(39.47, 49.38, -39.98)
CIE-LCHlch(39.47, 63.53, 321.01°)
OKLaboklab(49.94% 0.1273 -0.1117)
OKLCHoklch(49.94% 0.169 318.7)
XYZxyz(18.2515, 10.9334, 33.9431)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3A9F #4F9F3A
analogous
#583A9F #8A3A9F #9F3A81
triadic
#8A3A9F #9F8A3A #3A9F8A
tetradic
#8A3A9F #9F583A #4F9F3A #3A819F
square
#8A3A9F #9F583A #4F9F3A #3A819F
split-complementary
#8A3A9F #819F3A #3A9F58
monochromatic
#3C1945 #632A72 #8A3A9F #AB55C1 #C182D1

Accessibility & contrast

On white

6.59
#8A3A9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A3A9F
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3A9F#FFFFFF#000000##FFFFFF
##8A3A9F1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D58A2
Deuteranopia (green-blind)
#40609C
Tritanopia (blue-blind)
#8A4B67
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a3a9f;
/* rgb */ color: rgb(138, 58, 159);
/* oklch */ color: oklch(49.9% 0.169 318.7);
Tailwind
colors: {
  custom: {
    50: '#af75bc',
    500: '#8a3a9f',
    950: '#000000',
  },
}
SCSS
$custom: #8a3a9f;
$custom-light: #af75bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3a9f",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 159
  },
  "hsl": {
    "h": 287.525,
    "s": 46.544,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49939,
    "c": 0.16933,
    "h": 318.7
  },
  "luminance": 0.10933
}

Semantic roles & 50–950 ramp

primary
#8A3A9F
secondary
#87BB7A
accent
#D6526D
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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