#8A39AB#8A39AB

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

Color values

HEX#8A39AB
RGBrgb(138, 57, 171)
HSLhsl(283, 50%, 45%)
HSVhsv(283, 67%, 67%)
CMYKcmyk(19.3%, 66.7%, 0%, 32.9%)
CIE-LABlab(40.03, 52.33, -46.25)
CIE-LCHlch(40.03, 69.84, 318.53°)
OKLaboklab(50.58% 0.1282 -0.13)
OKLCHoklch(50.58% 0.183 314.6)
XYZxyz(19.2938, 11.2704, 39.6793)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A39AB #5AAB39
analogous
#5139AB #8A39AB #AB3993
triadic
#8A39AB #AB8A39 #39AB8A
tetradic
#8A39AB #AB5139 #5AAB39 #3993AB
square
#8A39AB #AB5139 #5AAB39 #3993AB
split-complementary
#8A39AB #93AB39 #39AB51
monochromatic
#401A4F #652A7D #8A39AB #A859C8 #C087D7

Accessibility & contrast

On white

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

On black

3.25
#8A39AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8A39AB#FFFFFF#000000##FFFFFF
##8A39AB1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#3560A8
Tritanopia (blue-blind)
#874F6D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a39ab;
/* rgb */ color: rgb(138, 57, 171);
/* oklch */ color: oklch(50.6% 0.183 314.6);
Tailwind
colors: {
  custom: {
    50: '#b075c5',
    500: '#8a39ab',
    950: '#000000',
  },
}
SCSS
$custom: #8a39ab;
$custom-light: #b075c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a39ab",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 171
  },
  "hsl": {
    "h": 282.632,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50582,
    "c": 0.1826,
    "h": 314.6
  },
  "luminance": 0.1127
}

Semantic roles & 50–950 ramp

primary
#8A39AB
secondary
#92C17F
accent
#DA4E77
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A39AB

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

Preview Lab → · Contrast checker → · Palette generator →

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