#8A3EA4#8A3EA4

#8A3EA4 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 50.8% C 0.168 H 316.5°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8A3EA4
RGBrgb(138, 62, 164)
HSLhsl(285, 45%, 44%)
HSVhsv(285, 62%, 64%)
CMYKcmyk(15.9%, 62.2%, 0%, 35.7%)
CIE-LABlab(40.46, 48.50, -41.39)
CIE-LCHlch(40.46, 63.77, 319.52°)
OKLaboklab(50.75% 0.1223 -0.1159)
OKLCHoklch(50.75% 0.168 316.5)
XYZxyz(18.9037, 11.5296, 36.3444)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EA4 #58A43E
analogous
#573EA4 #8A3EA4 #A43E8B
triadic
#8A3EA4 #A48A3E #3EA48A
tetradic
#8A3EA4 #A4573E #58A43E #3E8BA4
square
#8A3EA4 #A4573E #58A43E #3E8BA4
split-complementary
#8A3EA4 #8BA43E #3EA457
monochromatic
#3F1C4B #652D78 #8A3EA4 #A85DC2 #C08AD3

Accessibility & contrast

On white

6.35
#8A3EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8A3EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EA4
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EA4#FFFFFF#000000##FFFFFF
##8A3EA41.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5BA7
Deuteranopia (green-blind)
#3F62A1
Tritanopia (blue-blind)
#89506B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3ea4;
/* rgb */ color: rgb(138, 62, 164);
/* oklch */ color: oklch(50.8% 0.168 316.5);
Tailwind
colors: {
  custom: {
    50: '#af78bf',
    500: '#8a3ea4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ea4;
$custom-light: #af78bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ea4",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 164
  },
  "hsl": {
    "h": 284.706,
    "s": 45.133,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50752,
    "c": 0.16847,
    "h": 316.5
  },
  "luminance": 0.11529
}

Semantic roles & 50–950 ramp

primary
#8A3EA4
secondary
#90BD81
accent
#D55374
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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