#8A3EA5#8A3EA5

#8A3EA5 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 50.8% C 0.169 H 316.2°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#8A3EA5
RGBrgb(138, 62, 165)
HSLhsl(284, 45%, 45%)
HSVhsv(284, 62%, 65%)
CMYKcmyk(16.4%, 62.4%, 0%, 35.3%)
CIE-LABlab(40.52, 48.71, -41.90)
CIE-LCHlch(40.52, 64.25, 319.30°)
OKLaboklab(50.81% 0.1223 -0.1173)
OKLCHoklch(50.81% 0.169 316.2)
XYZxyz(18.9944, 11.5658, 36.8219)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EA5 #59A53E
analogous
#573EA5 #8A3EA5 #A53E8D
triadic
#8A3EA5 #A58A3E #3EA58A
tetradic
#8A3EA5 #A5573E #59A53E #3E8DA5
square
#8A3EA5 #A5573E #59A53E #3E8DA5
split-complementary
#8A3EA5 #8DA53E #3EA557
monochromatic
#401D4C #652D79 #8A3EA5 #A85EC2 #C08AD3

Accessibility & contrast

On white

6.34
#8A3EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A3EA5
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EA5#FFFFFF#000000##FFFFFF
##8A3EA51.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5BA8
Deuteranopia (green-blind)
#3F62A2
Tritanopia (blue-blind)
#88506C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3ea5;
/* rgb */ color: rgb(138, 62, 165);
/* oklch */ color: oklch(50.8% 0.169 316.2);
Tailwind
colors: {
  custom: {
    50: '#af78c0',
    500: '#8a3ea5',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ea5;
$custom-light: #af78c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ea5",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 165
  },
  "hsl": {
    "h": 284.272,
    "s": 45.374,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50814,
    "c": 0.16948,
    "h": 316.2
  },
  "luminance": 0.11565
}

Semantic roles & 50–950 ramp

primary
#8A3EA5
secondary
#91BE81
accent
#D55375
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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