#8A3AB2#8A3AB2

#8A3AB2 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.2% C 0.188 H 312.3°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#8A3AB2
RGBrgb(138, 58, 178)
HSLhsl(280, 51%, 46%)
HSVhsv(280, 67%, 70%)
CMYKcmyk(22.5%, 67.4%, 0%, 30.2%)
CIE-LABlab(40.65, 53.38, -49.41)
CIE-LCHlch(40.65, 72.74, 317.21°)
OKLaboklab(51.17% 0.1266 -0.1393)
OKLCHoklch(51.17% 0.188 312.3)
XYZxyz(20.0287, 11.6443, 43.3033)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AB2 #62B23A
analogous
#4E3AB2 #8A3AB2 #B23A9E
triadic
#8A3AB2 #B28A3A #3AB28A
tetradic
#8A3AB2 #B24E3A #62B23A #3A9EB2
square
#8A3AB2 #B24E3A #62B23A #3A9EB2
split-complementary
#8A3AB2 #9EB23A #3AB24E
monochromatic
#421C56 #662B84 #8A3AB2 #A75FCB #C08DDA

Accessibility & contrast

On white

6.31
#8A3AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8A3AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AB2
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AB2#FFFFFF#000000##FFFFFF
##8A3AB21.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#2F61AF
Tritanopia (blue-blind)
#855271
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3ab2;
/* rgb */ color: rgb(138, 58, 178);
/* oklch */ color: oklch(51.2% 0.188 312.3);
Tailwind
colors: {
  custom: {
    50: '#b076ca',
    500: '#8a3ab2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ab2;
$custom-light: #b076ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ab2",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 280,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51166,
    "c": 0.18826,
    "h": 312.3
  },
  "luminance": 0.11644
}

Semantic roles & 50–950 ramp

primary
#8A3AB2
secondary
#99C483
accent
#DA4D7C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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