#8A3FAD#8A3FAD

#8A3FAD is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.4% C 0.176 H 313.3°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#8A3FAD
RGBrgb(138, 63, 173)
HSLhsl(281, 47%, 46%)
HSVhsv(281, 64%, 68%)
CMYKcmyk(20.2%, 63.6%, 0%, 32.2%)
CIE-LABlab(41.18, 49.95, -45.60)
CIE-LCHlch(41.18, 67.63, 317.60°)
OKLaboklab(51.45% 0.121 -0.1282)
OKLCHoklch(51.45% 0.176 313.3)
XYZxyz(19.8003, 11.9760, 40.7956)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FAD #62AD3F
analogous
#533FAD #8A3FAD #AD3F99
triadic
#8A3FAD #AD8A3F #3FAD8A
tetradic
#8A3FAD #AD533F #62AD3F #3F99AD
square
#8A3FAD #AD533F #62AD3F #3F99AD
split-complementary
#8A3FAD #99AD3F #3FAD53
monochromatic
#421E53 #662F80 #8A3FAD #A763C6 #C090D7

Accessibility & contrast

On white

6.19
#8A3FAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8A3FAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FAD
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FAD#FFFFFF#000000##FFFFFF
##8A3FAD1.006.193.406.19
#FFFFFF6.191.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115DB0
Deuteranopia (green-blind)
#3963AA
Tritanopia (blue-blind)
#875470
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3fad;
/* rgb */ color: rgb(138, 63, 173);
/* oklch */ color: oklch(51.4% 0.176 313.3);
Tailwind
colors: {
  custom: {
    50: '#af79c6',
    500: '#8a3fad',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fad;
$custom-light: #af79c6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fad",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 173
  },
  "hsl": {
    "h": 280.909,
    "s": 46.61,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51448,
    "c": 0.17626,
    "h": 313.3
  },
  "luminance": 0.11975
}

Semantic roles & 50–950 ramp

primary
#8A3FAD
secondary
#99C286
accent
#D6527C
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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