#8A39AA#8A39AA

#8A39AA is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.5% C 0.182 H 314.9°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#8A39AA
RGBrgb(138, 57, 170)
HSLhsl(283, 50%, 45%)
HSVhsv(283, 66%, 67%)
CMYKcmyk(18.8%, 66.5%, 0%, 33.3%)
CIE-LABlab(39.97, 52.12, -45.75)
CIE-LCHlch(39.97, 69.36, 318.72°)
OKLaboklab(50.52% 0.1282 -0.1286)
OKLCHoklch(50.52% 0.182 314.9)
XYZxyz(19.1989, 11.2325, 39.1792)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A39AA #59AA39
analogous
#5239AA #8A39AA #AA3992
triadic
#8A39AA #AA8A39 #39AA8A
tetradic
#8A39AA #AA5239 #59AA39 #3992AA
square
#8A39AA #AA5239 #59AA39 #3992AA
split-complementary
#8A39AA #92AA39 #39AA52
monochromatic
#401A4E #652A7C #8A39AA #A859C7 #C087D7

Accessibility & contrast

On white

6.47
#8A39AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A39AA
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A39AA#FFFFFF#000000##FFFFFF
##8A39AA1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAD
Deuteranopia (green-blind)
#3660A7
Tritanopia (blue-blind)
#874F6D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a39aa;
/* rgb */ color: rgb(138, 57, 170);
/* oklch */ color: oklch(50.5% 0.182 314.9);
Tailwind
colors: {
  custom: {
    50: '#af75c4',
    500: '#8a39aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a39aa;
$custom-light: #af75c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a39aa",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 170
  },
  "hsl": {
    "h": 283.009,
    "s": 49.78,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50516,
    "c": 0.18161,
    "h": 314.9
  },
  "luminance": 0.11232
}

Semantic roles & 50–950 ramp

primary
#8A39AA
secondary
#91C17E
accent
#D94E76
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A39AA

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

Preview Lab → · Contrast checker → · Palette generator →

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