#8A3FA1#8A3FA1

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

Color values

HEX#8A3FA1
RGBrgb(138, 63, 161)
HSLhsl(286, 44%, 44%)
HSVhsv(286, 61%, 63%)
CMYKcmyk(14.3%, 60.9%, 0%, 36.9%)
CIE-LABlab(40.46, 47.39, -39.59)
CIE-LCHlch(40.46, 61.75, 320.12°)
OKLaboklab(50.7% 0.1209 -0.1106)
OKLCHoklch(50.7% 0.164 317.5)
XYZxyz(18.6908, 11.5322, 34.9527)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FA1 #56A13F
analogous
#593FA1 #8A3FA1 #A13F87
triadic
#8A3FA1 #A18A3F #3FA18A
tetradic
#8A3FA1 #A1593F #56A13F #3F87A1
square
#8A3FA1 #A1593F #56A13F #3F87A1
split-complementary
#8A3FA1 #87A13F #3FA159
monochromatic
#3F1D49 #642E75 #8A3FA1 #A95DC0 #C089D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A3FA1#FFFFFF#000000##FFFFFF
##8A3FA11.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)
#245BA4
Deuteranopia (green-blind)
#42629F
Tritanopia (blue-blind)
#894F6A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3fa1;
/* rgb */ color: rgb(138, 63, 161);
/* oklch */ color: oklch(50.7% 0.164 317.5);
Tailwind
colors: {
  custom: {
    50: '#af78bd',
    500: '#8a3fa1',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fa1;
$custom-light: #af78bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fa1",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 285.918,
    "s": 43.75,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50699,
    "c": 0.16391,
    "h": 317.5
  },
  "luminance": 0.11531
}

Semantic roles & 50–950 ramp

primary
#8A3FA1
secondary
#8EBC80
accent
#D35472
background
#FBF7FB
surface
#F6EEF6
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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