#8A39A6#8A39A6

#8A39A6 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.3% C 0.178 H 316.3°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#8A39A6
RGBrgb(138, 57, 166)
HSLhsl(285, 49%, 44%)
HSVhsv(285, 66%, 65%)
CMYKcmyk(16.9%, 65.7%, 0%, 34.9%)
CIE-LABlab(39.72, 51.28, -43.77)
CIE-LCHlch(39.72, 67.42, 319.52°)
OKLaboklab(50.26% 0.1284 -0.1228)
OKLCHoklch(50.26% 0.178 316.3)
XYZxyz(18.8262, 11.0834, 37.2166)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A39A6 #55A639
analogous
#5339A6 #8A39A6 #A6398B
triadic
#8A39A6 #A68A39 #39A68A
tetradic
#8A39A6 #A65339 #55A639 #398BA6
square
#8A39A6 #A65339 #55A639 #398BA6
split-complementary
#8A39A6 #8BA639 #39A653
monochromatic
#3E1A4B #642978 #8A39A6 #A957C5 #C084D5

Accessibility & contrast

On white

6.53
#8A39A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8A39A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A39A6
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A39A6#FFFFFF#000000##FFFFFF
##8A39A61.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C59A9
Deuteranopia (green-blind)
#3A60A3
Tritanopia (blue-blind)
#884D6A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a39a6;
/* rgb */ color: rgb(138, 57, 166);
/* oklch */ color: oklch(50.3% 0.178 316.3);
Tailwind
colors: {
  custom: {
    50: '#af75c1',
    500: '#8a39a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a39a6;
$custom-light: #af75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a39a6",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 166
  },
  "hsl": {
    "h": 284.587,
    "s": 48.879,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50257,
    "c": 0.17766,
    "h": 316.3
  },
  "luminance": 0.11083
}

Semantic roles & 50–950 ramp

primary
#8A39A6
secondary
#8DBF7C
accent
#D84F73
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A39A6

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

Preview Lab → · Contrast checker → · Palette generator →

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