#8A3EAC#8A3EAC

#8A3EAC is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.3% C 0.177 H 313.8°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8A3EAC
RGBrgb(138, 62, 172)
HSLhsl(281, 47%, 46%)
HSVhsv(281, 64%, 67%)
CMYKcmyk(19.8%, 64%, 0%, 32.5%)
CIE-LABlab(40.94, 50.21, -45.39)
CIE-LCHlch(40.94, 67.68, 317.89°)
OKLaboklab(51.26% 0.1222 -0.1276)
OKLCHoklch(51.26% 0.177 313.8)
XYZxyz(19.6490, 11.8277, 40.2696)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EAC #60AC3E
analogous
#533EAC #8A3EAC #AC3E97
triadic
#8A3EAC #AC8A3E #3EAC8A
tetradic
#8A3EAC #AC533E #60AC3E #3E97AC
square
#8A3EAC #AC533E #60AC3E #3E97AC
split-complementary
#8A3EAC #97AC3E #3EAC53
monochromatic
#421E52 #662E7F #8A3EAC #A761C6 #C08ED6

Accessibility & contrast

On white

6.24
#8A3EAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8A3EAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EAC
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EAC#FFFFFF#000000##FFFFFF
##8A3EAC1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5CAF
Deuteranopia (green-blind)
#3962A9
Tritanopia (blue-blind)
#87536F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3eac;
/* rgb */ color: rgb(138, 62, 172);
/* oklch */ color: oklch(51.3% 0.177 313.8);
Tailwind
colors: {
  custom: {
    50: '#af78c5',
    500: '#8a3eac',
    950: '#000000',
  },
}
SCSS
$custom: #8a3eac;
$custom-light: #af78c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3eac",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 172
  },
  "hsl": {
    "h": 281.455,
    "s": 47.009,
    "l": 45.882
  },
  "oklch": {
    "l": 0.51257,
    "c": 0.17665,
    "h": 313.8
  },
  "luminance": 0.11827
}

Semantic roles & 50–950 ramp

primary
#8A3EAC
secondary
#97C185
accent
#D7517A
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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