#8A3AB7#8A3AB7

#8A3AB7 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.5% C 0.193 H 310.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#8A3AB7
RGBrgb(138, 58, 183)
HSLhsl(278, 52%, 47%)
HSVhsv(278, 68%, 72%)
CMYKcmyk(24.6%, 68.3%, 0%, 28.2%)
CIE-LABlab(40.97, 54.47, -51.83)
CIE-LCHlch(40.97, 75.19, 316.42°)
OKLaboklab(51.51% 0.1262 -0.1464)
OKLCHoklch(51.51% 0.193 310.7)
XYZxyz(20.5399, 11.8487, 45.9956)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AB7 #67B73A
analogous
#4C3AB7 #8A3AB7 #B73AA6
triadic
#8A3AB7 #B78A3A #3AB78A
tetradic
#8A3AB7 #B74C3A #67B73A #3AA6B7
square
#8A3AB7 #B74C3A #67B73A #3AA6B7
split-complementary
#8A3AB7 #A6B73A #3AB74C
monochromatic
#441D5A #672B89 #8A3AB7 #A661CD #C090DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A3AB7#FFFFFF#000000##FFFFFF
##8A3AB71.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)
#005DBB
Deuteranopia (green-blind)
#2962B4
Tritanopia (blue-blind)
#845474
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3ab7;
/* rgb */ color: rgb(138, 58, 183);
/* oklch */ color: oklch(51.5% 0.193 310.7);
Tailwind
colors: {
  custom: {
    50: '#b076cd',
    500: '#8a3ab7',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ab7;
$custom-light: #b076cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ab7",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 183
  },
  "hsl": {
    "h": 278.4,
    "s": 51.867,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51507,
    "c": 0.1933,
    "h": 310.7
  },
  "luminance": 0.11848
}

Semantic roles & 50–950 ramp

primary
#8A3AB7
secondary
#9DC786
accent
#DB4C80
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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