#8A3EA3#8A3EA3

#8A3EA3 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 50.7% C 0.167 H 316.9°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#8A3EA3
RGBrgb(138, 62, 163)
HSLhsl(285, 45%, 44%)
HSVhsv(285, 62%, 64%)
CMYKcmyk(15.3%, 62%, 0%, 36.1%)
CIE-LABlab(40.40, 48.29, -40.89)
CIE-LCHlch(40.40, 63.28, 319.75°)
OKLaboklab(50.69% 0.1223 -0.1144)
OKLCHoklch(50.69% 0.167 316.9)
XYZxyz(18.8137, 11.4936, 35.8707)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EA3 #57A33E
analogous
#583EA3 #8A3EA3 #A33E8A
triadic
#8A3EA3 #A38A3E #3EA38A
tetradic
#8A3EA3 #A3583E #57A33E #3E8AA3
square
#8A3EA3 #A3583E #57A33E #3E8AA3
split-complementary
#8A3EA3 #8AA33E #3EA358
monochromatic
#3F1C4A #642D77 #8A3EA3 #A85DC1 #C089D2

Accessibility & contrast

On white

6.37
#8A3EA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8A3EA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EA3
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EA3#FFFFFF#000000##FFFFFF
##8A3EA31.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205AA6
Deuteranopia (green-blind)
#4062A0
Tritanopia (blue-blind)
#894F6B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3ea3;
/* rgb */ color: rgb(138, 62, 163);
/* oklch */ color: oklch(50.7% 0.167 316.9);
Tailwind
colors: {
  custom: {
    50: '#af78bf',
    500: '#8a3ea3',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ea3;
$custom-light: #af78bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ea3",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 163
  },
  "hsl": {
    "h": 285.149,
    "s": 44.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50691,
    "c": 0.16745,
    "h": 316.9
  },
  "luminance": 0.11493
}

Semantic roles & 50–950 ramp

primary
#8A3EA3
secondary
#8FBD80
accent
#D55373
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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