#8A3FAA#8A3FAA

#8A3FAA is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.3% C 0.173 H 314.3°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#8A3FAA
RGBrgb(138, 63, 170)
HSLhsl(282, 46%, 46%)
HSVhsv(282, 63%, 67%)
CMYKcmyk(18.8%, 62.9%, 0%, 33.3%)
CIE-LABlab(40.99, 49.30, -44.11)
CIE-LCHlch(40.99, 66.15, 318.18°)
OKLaboklab(51.26% 0.121 -0.1238)
OKLCHoklch(51.26% 0.173 314.3)
XYZxyz(19.5132, 11.8612, 39.2840)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FAA #5FAA3F
analogous
#543FAA #8A3FAA #AA3F94
triadic
#8A3FAA #AA8A3F #3FAA8A
tetradic
#8A3FAA #AA543F #5FAA3F #3F94AA
square
#8A3FAA #AA543F #5FAA3F #3F94AA
split-complementary
#8A3FAA #94AA3F #3FAA54
monochromatic
#421E51 #662E7D #8A3FAA #A762C5 #C08ED5

Accessibility & contrast

On white

6.23
#8A3FAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8A3FAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FAA
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FAA#FFFFFF#000000##FFFFFF
##8A3FAA1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175CAD
Deuteranopia (green-blind)
#3C63A7
Tritanopia (blue-blind)
#87536F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3faa;
/* rgb */ color: rgb(138, 63, 170);
/* oklch */ color: oklch(51.3% 0.173 314.3);
Tailwind
colors: {
  custom: {
    50: '#af79c4',
    500: '#8a3faa',
    950: '#000000',
  },
}
SCSS
$custom: #8a3faa;
$custom-light: #af79c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3faa",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 170
  },
  "hsl": {
    "h": 282.056,
    "s": 45.923,
    "l": 45.686
  },
  "oklch": {
    "l": 0.51256,
    "c": 0.17315,
    "h": 314.3
  },
  "luminance": 0.11861
}

Semantic roles & 50–950 ramp

primary
#8A3FAA
secondary
#96C085
accent
#D6527A
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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