#8A3EA6#8A3EA6

#8A3EA6 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 50.9% C 0.171 H 315.8°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8A3EA6
RGBrgb(138, 62, 166)
HSLhsl(284, 46%, 45%)
HSVhsv(284, 63%, 65%)
CMYKcmyk(16.9%, 62.7%, 0%, 34.9%)
CIE-LABlab(40.58, 48.93, -42.40)
CIE-LCHlch(40.58, 64.74, 319.09°)
OKLaboklab(50.88% 0.1223 -0.1188)
OKLCHoklch(50.88% 0.171 315.8)
XYZxyz(19.0857, 11.6024, 37.3031)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EA6 #5AA63E
analogous
#563EA6 #8A3EA6 #A63E8E
triadic
#8A3EA6 #A68A3E #3EA68A
tetradic
#8A3EA6 #A6563E #5AA63E #3E8EA6
square
#8A3EA6 #A6563E #5AA63E #3E8EA6
split-complementary
#8A3EA6 #8EA63E #3EA656
monochromatic
#401D4D #652D79 #8A3EA6 #A85EC3 #C08BD4

Accessibility & contrast

On white

6.32
#8A3EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8A3EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EA6
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EA6#FFFFFF#000000##FFFFFF
##8A3EA61.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5BA9
Deuteranopia (green-blind)
#3E62A3
Tritanopia (blue-blind)
#88506C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3ea6;
/* rgb */ color: rgb(138, 62, 166);
/* oklch */ color: oklch(50.9% 0.171 315.8);
Tailwind
colors: {
  custom: {
    50: '#af78c1',
    500: '#8a3ea6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ea6;
$custom-light: #af78c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ea6",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 166
  },
  "hsl": {
    "h": 283.846,
    "s": 45.614,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50876,
    "c": 0.17051,
    "h": 315.8
  },
  "luminance": 0.11602
}

Semantic roles & 50–950 ramp

primary
#8A3EA6
secondary
#92BE82
accent
#D55376
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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