#8A3BA2#8A3BA2

#8A3BA2 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.2% C 0.171 H 317.5°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#8A3BA2
RGBrgb(138, 59, 162)
HSLhsl(286, 47%, 43%)
HSVhsv(286, 64%, 64%)
CMYKcmyk(14.8%, 63.6%, 0%, 36.5%)
CIE-LABlab(39.82, 49.52, -41.22)
CIE-LCHlch(39.82, 64.43, 320.23°)
OKLaboklab(50.25% 0.126 -0.1154)
OKLCHoklch(50.25% 0.171 317.5)
XYZxyz(18.5659, 11.1406, 35.3478)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BA2 #53A23B
analogous
#563BA2 #8A3BA2 #A23B86
triadic
#8A3BA2 #A28A3B #3BA28A
tetradic
#8A3BA2 #A2563B #53A23B #3B86A2
square
#8A3BA2 #A2563B #53A23B #3B86A2
split-complementary
#8A3BA2 #86A23B #3BA256
monochromatic
#3E1A48 #642B75 #8A3BA2 #A958C2 #C085D3

Accessibility & contrast

On white

6.51
#8A3BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8A3BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BA2
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BA2#FFFFFF#000000##FFFFFF
##8A3BA21.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B59A5
Deuteranopia (green-blind)
#3E609F
Tritanopia (blue-blind)
#894D69
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3ba2;
/* rgb */ color: rgb(138, 59, 162);
/* oklch */ color: oklch(50.2% 0.171 317.5);
Tailwind
colors: {
  custom: {
    50: '#af76be',
    500: '#8a3ba2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ba2;
$custom-light: #af76be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ba2",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 162
  },
  "hsl": {
    "h": 286.019,
    "s": 46.606,
    "l": 43.333
  },
  "oklch": {
    "l": 0.50249,
    "c": 0.17085,
    "h": 317.5
  },
  "luminance": 0.1114
}

Semantic roles & 50–950 ramp

primary
#8A3BA2
secondary
#8BBD7C
accent
#D65270
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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