#8A3F9A#8A3F9A

#8A3F9A is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.3% C 0.157 H 320.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8A3F9A
RGBrgb(138, 63, 154)
HSLhsl(289, 42%, 43%)
HSVhsv(289, 59%, 60%)
CMYKcmyk(10.4%, 59.1%, 0%, 39.6%)
CIE-LABlab(40.07, 45.94, -36.01)
CIE-LCHlch(40.07, 58.37, 321.91°)
OKLaboklab(50.28% 0.1206 -0.1002)
OKLCHoklch(50.28% 0.157 320.3)
XYZxyz(18.0908, 11.2922, 31.7923)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3F9A #4F9A3F
analogous
#5D3F9A #8A3F9A #9A3F7C
triadic
#8A3F9A #9A8A3F #3F9A8A
tetradic
#8A3F9A #9A5D3F #4F9A3F #3F7C9A
square
#8A3F9A #9A5D3F #4F9A3F #3F7C9A
split-complementary
#8A3F9A #7C9A3F #3F9A5D
monochromatic
#3C1B43 #632D6F #8A3F9A #AB5ABC #C186CD

Accessibility & contrast

On white

6.45
#8A3F9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8A3F9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3F9A
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3F9A#FFFFFF#000000##FFFFFF
##8A3F9A1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C599D
Deuteranopia (green-blind)
#476198
Tritanopia (blue-blind)
#8B4D66
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3f9a;
/* rgb */ color: rgb(138, 63, 154);
/* oklch */ color: oklch(50.3% 0.157 320.3);
Tailwind
colors: {
  custom: {
    50: '#af78b8',
    500: '#8a3f9a',
    950: '#000000',
  },
}
SCSS
$custom: #8a3f9a;
$custom-light: #af78b8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3f9a",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 154
  },
  "hsl": {
    "h": 289.451,
    "s": 41.935,
    "l": 42.549
  },
  "oklch": {
    "l": 0.50284,
    "c": 0.15682,
    "h": 320.3
  },
  "luminance": 0.11291
}

Semantic roles & 50–950 ramp

primary
#8A3F9A
secondary
#87B87D
accent
#D2566C
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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