#8A3AB8#8A3AB8

#8A3AB8 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.6% C 0.194 H 310.5°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8A3AB8
RGBrgb(138, 58, 184)
HSLhsl(278, 52%, 47%)
HSVhsv(278, 68%, 72%)
CMYKcmyk(25%, 68.5%, 0%, 27.8%)
CIE-LABlab(41.04, 54.69, -52.31)
CIE-LCHlch(41.04, 75.68, 316.27°)
OKLaboklab(51.58% 0.1261 -0.1478)
OKLCHoklch(51.58% 0.194 310.5)
XYZxyz(20.6444, 11.8905, 46.5457)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AB8 #68B83A
analogous
#4B3AB8 #8A3AB8 #B83AA7
triadic
#8A3AB8 #B88A3A #3AB88A
tetradic
#8A3AB8 #B84B3A #68B83A #3AA7B8
square
#8A3AB8 #B84B3A #68B83A #3AA7B8
split-complementary
#8A3AB8 #A7B83A #3AB84B
monochromatic
#441D5B #672B89 #8A3AB8 #A662CD #C090DC

Accessibility & contrast

On white

6.22
#8A3AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8A3AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AB8
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AB8#FFFFFF#000000##FFFFFF
##8A3AB81.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBC
Deuteranopia (green-blind)
#2762B5
Tritanopia (blue-blind)
#845574
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3ab8;
/* rgb */ color: rgb(138, 58, 184);
/* oklch */ color: oklch(51.6% 0.194 310.5);
Tailwind
colors: {
  custom: {
    50: '#b076ce',
    500: '#8a3ab8',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ab8;
$custom-light: #b076ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ab8",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 184
  },
  "hsl": {
    "h": 278.095,
    "s": 52.066,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51576,
    "c": 0.1943,
    "h": 310.5
  },
  "luminance": 0.1189
}

Semantic roles & 50–950 ramp

primary
#8A3AB8
secondary
#9EC787
accent
#DC4C81
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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