#8A39A2#8A39A2

#8A39A2 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.0% C 0.174 H 317.7°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8A39A2
RGBrgb(138, 57, 162)
HSLhsl(286, 48%, 43%)
HSVhsv(286, 65%, 64%)
CMYKcmyk(14.8%, 64.8%, 0%, 36.5%)
CIE-LABlab(39.48, 50.46, -41.76)
CIE-LCHlch(39.48, 65.50, 320.39°)
OKLaboklab(50% 0.1285 -0.1169)
OKLCHoklch(50% 0.174 317.7)
XYZxyz(18.4650, 10.9389, 35.3142)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A39A2 #51A239
analogous
#5639A2 #8A39A2 #A23985
triadic
#8A39A2 #A28A39 #39A28A
tetradic
#8A39A2 #A25639 #51A239 #3985A2
square
#8A39A2 #A25639 #51A239 #3985A2
split-complementary
#8A39A2 #85A239 #39A256
monochromatic
#3D1947 #632975 #8A39A2 #AA55C3 #C182D3

Accessibility & contrast

On white

6.59
#8A39A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8A39A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A39A2
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A39A2#FFFFFF#000000##FFFFFF
##8A39A21.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1558A5
Deuteranopia (green-blind)
#3D609F
Tritanopia (blue-blind)
#894C68
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a39a2;
/* rgb */ color: rgb(138, 57, 162);
/* oklch */ color: oklch(50.0% 0.174 317.7);
Tailwind
colors: {
  custom: {
    50: '#af75be',
    500: '#8a39a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a39a2;
$custom-light: #af75be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a39a2",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 162
  },
  "hsl": {
    "h": 286.286,
    "s": 47.945,
    "l": 42.941
  },
  "oklch": {
    "l": 0.50004,
    "c": 0.17371,
    "h": 317.7
  },
  "luminance": 0.10938
}

Semantic roles & 50–950 ramp

primary
#8A39A2
secondary
#89BD7A
accent
#D8506F
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A39A2

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

Preview Lab → · Contrast checker → · Palette generator →

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