#8A3E9D#8A3E9D

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

Color values

HEX#8A3E9D
RGBrgb(138, 62, 157)
HSLhsl(288, 43%, 43%)
HSVhsv(288, 61%, 62%)
CMYKcmyk(12.1%, 60.5%, 0%, 38.4%)
CIE-LABlab(40.05, 47.05, -37.84)
CIE-LCHlch(40.05, 60.38, 321.19°)
OKLaboklab(50.33% 0.1221 -0.1055)
OKLCHoklch(50.33% 0.161 319.2)
XYZxyz(18.2889, 11.2836, 33.1063)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3E9D #519D3E
analogous
#5A3E9D #8A3E9D #9D3E80
triadic
#8A3E9D #9D8A3E #3E9D8A
tetradic
#8A3E9D #9D5A3E #519D3E #3E809D
square
#8A3E9D #9D5A3E #519D3E #3E809D
split-complementary
#8A3E9D #809D3E #3E9D5A
monochromatic
#3D1B45 #632D71 #8A3E9D #AA5ABE #C186CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A3E9D#FFFFFF#000000##FFFFFF
##8A3E9D1.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)
#2759A0
Deuteranopia (green-blind)
#44619B
Tritanopia (blue-blind)
#8A4D67
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3e9d;
/* rgb */ color: rgb(138, 62, 157);
/* oklch */ color: oklch(50.3% 0.161 319.2);
Tailwind
colors: {
  custom: {
    50: '#af78ba',
    500: '#8a3e9d',
    950: '#000000',
  },
}
SCSS
$custom: #8a3e9d;
$custom-light: #af78ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3e9d",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 157
  },
  "hsl": {
    "h": 288,
    "s": 43.379,
    "l": 42.941
  },
  "oklch": {
    "l": 0.50328,
    "c": 0.16138,
    "h": 319.2
  },
  "luminance": 0.11283
}

Semantic roles & 50–950 ramp

primary
#8A3E9D
secondary
#89BA7D
accent
#D3556E
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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