#8A3EAA#8A3EAA

#8A3EAA is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.1% C 0.175 H 314.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8A3EAA
RGBrgb(138, 62, 170)
HSLhsl(282, 47%, 45%)
HSVhsv(282, 64%, 67%)
CMYKcmyk(18.8%, 63.5%, 0%, 33.3%)
CIE-LABlab(40.82, 49.78, -44.40)
CIE-LCHlch(40.82, 66.70, 318.27°)
OKLaboklab(51.13% 0.1223 -0.1247)
OKLCHoklch(51.13% 0.175 314.4)
XYZxyz(19.4584, 11.7514, 39.2657)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EAA #5EAA3E
analogous
#543EAA #8A3EAA #AA3E94
triadic
#8A3EAA #AA8A3E #3EAA8A
tetradic
#8A3EAA #AA543E #5EAA3E #3E94AA
square
#8A3EAA #AA543E #5EAA3E #3E94AA
split-complementary
#8A3EAA #94AA3E #3EAA54
monochromatic
#411D50 #662E7D #8A3EAA #A760C5 #C08DD5

Accessibility & contrast

On white

6.27
#8A3EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8A3EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EAA
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EAA#FFFFFF#000000##FFFFFF
##8A3EAA1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145CAD
Deuteranopia (green-blind)
#3B62A7
Tritanopia (blue-blind)
#87526E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3eaa;
/* rgb */ color: rgb(138, 62, 170);
/* oklch */ color: oklch(51.1% 0.175 314.4);
Tailwind
colors: {
  custom: {
    50: '#af78c4',
    500: '#8a3eaa',
    950: '#000000',
  },
}
SCSS
$custom: #8a3eaa;
$custom-light: #af78c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3eaa",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 170
  },
  "hsl": {
    "h": 282.222,
    "s": 46.552,
    "l": 45.49
  },
  "oklch": {
    "l": 0.51129,
    "c": 0.1746,
    "h": 314.4
  },
  "luminance": 0.11751
}

Semantic roles & 50–950 ramp

primary
#8A3EAA
secondary
#96C084
accent
#D65279
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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