#8A39A1#8A39A1

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

Color values

HEX#8A39A1
RGBrgb(138, 57, 161)
HSLhsl(287, 48%, 43%)
HSVhsv(287, 65%, 63%)
CMYKcmyk(14.3%, 64.6%, 0%, 36.9%)
CIE-LABlab(39.42, 50.25, -41.26)
CIE-LCHlch(39.42, 65.02, 320.61°)
OKLaboklab(49.94% 0.1285 -0.1154)
OKLCHoklch(49.94% 0.173 318.1)
XYZxyz(18.3765, 10.9035, 34.8479)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A39A1 #50A139
analogous
#5639A1 #8A39A1 #A13984
triadic
#8A39A1 #A18A39 #39A18A
tetradic
#8A39A1 #A15639 #50A139 #3984A1
square
#8A39A1 #A15639 #50A139 #3984A1
split-complementary
#8A39A1 #84A139 #39A156
monochromatic
#3D1947 #632974 #8A39A1 #AA55C3 #C182D3

Accessibility & contrast

On white

6.60
#8A39A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8A39A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A39A1
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A39A1#FFFFFF#000000##FFFFFF
##8A39A11.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1758A4
Deuteranopia (green-blind)
#3D5F9E
Tritanopia (blue-blind)
#8A4B68
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a39a1;
/* rgb */ color: rgb(138, 57, 161);
/* oklch */ color: oklch(49.9% 0.173 318.1);
Tailwind
colors: {
  custom: {
    50: '#af75bd',
    500: '#8a39a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a39a1;
$custom-light: #af75bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a39a1",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 161
  },
  "hsl": {
    "h": 286.731,
    "s": 47.706,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49941,
    "c": 0.17273,
    "h": 318.1
  },
  "luminance": 0.10903
}

Semantic roles & 50–950 ramp

primary
#8A39A1
secondary
#88BC79
accent
#D7506E
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A39A1

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

Preview Lab → · Contrast checker → · Palette generator →

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