#8A3AB4#8A3AB4

#8A3AB4 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.3% C 0.190 H 311.6°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8A3AB4
RGBrgb(138, 58, 180)
HSLhsl(279, 51%, 47%)
HSVhsv(279, 68%, 71%)
CMYKcmyk(23.3%, 67.8%, 0%, 29.4%)
CIE-LABlab(40.78, 53.81, -50.39)
CIE-LCHlch(40.78, 73.72, 316.88°)
OKLaboklab(51.3% 0.1264 -0.1422)
OKLCHoklch(51.3% 0.19 311.6)
XYZxyz(20.2310, 11.7252, 44.3686)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AB4 #64B43A
analogous
#4D3AB4 #8A3AB4 #B43AA1
triadic
#8A3AB4 #B48A3A #3AB48A
tetradic
#8A3AB4 #B44D3A #64B43A #3AA1B4
square
#8A3AB4 #B44D3A #64B43A #3AA1B4
split-complementary
#8A3AB4 #A1B43A #3AB44D
monochromatic
#431C57 #672B86 #8A3AB4 #A660CC #C08EDB

Accessibility & contrast

On white

6.28
#8A3AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8A3AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AB4
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AB4#FFFFFF#000000##FFFFFF
##8A3AB41.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#2D62B1
Tritanopia (blue-blind)
#855372
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3ab4;
/* rgb */ color: rgb(138, 58, 180);
/* oklch */ color: oklch(51.3% 0.190 311.6);
Tailwind
colors: {
  custom: {
    50: '#b076cb',
    500: '#8a3ab4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ab4;
$custom-light: #b076cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ab4",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 180
  },
  "hsl": {
    "h": 279.344,
    "s": 51.261,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51301,
    "c": 0.19027,
    "h": 311.6
  },
  "luminance": 0.11725
}

Semantic roles & 50–950 ramp

primary
#8A3AB4
secondary
#9BC585
accent
#DB4D7E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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