#8A3F9D#8A3F9D

#8A3F9D is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.5% C 0.160 H 319.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#8A3F9D
RGBrgb(138, 63, 157)
HSLhsl(288, 43%, 43%)
HSVhsv(288, 60%, 62%)
CMYKcmyk(12.1%, 59.9%, 0%, 38.4%)
CIE-LABlab(40.24, 46.55, -37.55)
CIE-LCHlch(40.24, 59.81, 321.11°)
OKLaboklab(50.46% 0.1208 -0.1047)
OKLCHoklch(50.46% 0.16 319.1)
XYZxyz(18.3437, 11.3934, 33.1246)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3F9D #529D3F
analogous
#5B3F9D #8A3F9D #9D3F81
triadic
#8A3F9D #9D8A3F #3F9D8A
tetradic
#8A3F9D #9D5B3F #529D3F #3F819D
square
#8A3F9D #9D5B3F #529D3F #3F819D
split-complementary
#8A3F9D #819D3F #3F9D5B
monochromatic
#3D1C46 #642D71 #8A3F9D #AA5CBD #C187CF

Accessibility & contrast

On white

6.41
#8A3F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8A3F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3F9D
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3F9D#FFFFFF#000000##FFFFFF
##8A3F9D1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295AA0
Deuteranopia (green-blind)
#45619B
Tritanopia (blue-blind)
#8A4E68
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3f9d;
/* rgb */ color: rgb(138, 63, 157);
/* oklch */ color: oklch(50.5% 0.160 319.1);
Tailwind
colors: {
  custom: {
    50: '#af78ba',
    500: '#8a3f9d',
    950: '#000000',
  },
}
SCSS
$custom: #8a3f9d;
$custom-light: #af78ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3f9d",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 157
  },
  "hsl": {
    "h": 287.872,
    "s": 42.727,
    "l": 43.137
  },
  "oklch": {
    "l": 0.5046,
    "c": 0.15984,
    "h": 319.1
  },
  "luminance": 0.11393
}

Semantic roles & 50–950 ramp

primary
#8A3F9D
secondary
#8ABA7E
accent
#D3556F
background
#FBF7FB
surface
#F6EEF6
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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