#8A3C9F#8A3C9F

#8A3C9F is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.2% C 0.166 H 318.6°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#8A3C9F
RGBrgb(138, 60, 159)
HSLhsl(287, 45%, 43%)
HSVhsv(287, 62%, 62%)
CMYKcmyk(13.2%, 62.3%, 0%, 37.6%)
CIE-LABlab(39.81, 48.43, -39.43)
CIE-LCHlch(39.81, 62.45, 320.85°)
OKLaboklab(50.19% 0.1247 -0.1101)
OKLCHoklch(50.19% 0.166 318.6)
XYZxyz(18.3543, 11.1390, 33.9774)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3C9F #519F3C
analogous
#593C9F #8A3C9F #9F3C82
triadic
#8A3C9F #9F8A3C #3C9F8A
tetradic
#8A3C9F #9F593C #519F3C #3C829F
square
#8A3C9F #9F593C #519F3C #3C829F
split-complementary
#8A3C9F #829F3C #3C9F59
monochromatic
#3D1A46 #632B73 #8A3C9F #AA58C0 #C185D1

Accessibility & contrast

On white

6.51
#8A3C9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8A3C9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3C9F
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3C9F#FFFFFF#000000##FFFFFF
##8A3C9F1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2159A2
Deuteranopia (green-blind)
#41609D
Tritanopia (blue-blind)
#8A4D68
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3c9f;
/* rgb */ color: rgb(138, 60, 159);
/* oklch */ color: oklch(50.2% 0.166 318.6);
Tailwind
colors: {
  custom: {
    50: '#af77bc',
    500: '#8a3c9f',
    950: '#000000',
  },
}
SCSS
$custom: #8a3c9f;
$custom-light: #af77bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3c9f",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 159
  },
  "hsl": {
    "h": 287.273,
    "s": 45.205,
    "l": 42.941
  },
  "oklch": {
    "l": 0.5019,
    "c": 0.16639,
    "h": 318.6
  },
  "luminance": 0.11138
}

Semantic roles & 50–950 ramp

primary
#8A3C9F
secondary
#89BB7C
accent
#D5536E
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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