#8A3AB9#8A3AB9

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

Color values

HEX#8A3AB9
RGBrgb(138, 58, 185)
HSLhsl(278, 52%, 48%)
HSVhsv(278, 69%, 73%)
CMYKcmyk(25.4%, 68.6%, 0%, 27.5%)
CIE-LABlab(41.11, 54.91, -52.79)
CIE-LCHlch(41.11, 76.17, 316.12°)
OKLaboklab(51.65% 0.126 -0.1493)
OKLCHoklch(51.65% 0.195 310.2)
XYZxyz(20.7495, 11.9326, 47.0997)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AB9 #69B93A
analogous
#4A3AB9 #8A3AB9 #B93AA9
triadic
#8A3AB9 #B98A3A #3AB98A
tetradic
#8A3AB9 #B94A3A #69B93A #3AA9B9
square
#8A3AB9 #B94A3A #69B93A #3AA9B9
split-complementary
#8A3AB9 #A9B93A #3AB94A
monochromatic
#441D5C #672B8A #8A3AB9 #A662CE #C191DC

Accessibility & contrast

On white

6.20
#8A3AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8A3AB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AB9
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AB9#FFFFFF#000000##FFFFFF
##8A3AB91.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBD
Deuteranopia (green-blind)
#2662B6
Tritanopia (blue-blind)
#845575
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3ab9;
/* rgb */ color: rgb(138, 58, 185);
/* oklch */ color: oklch(51.6% 0.195 310.2);
Tailwind
colors: {
  custom: {
    50: '#b076cf',
    500: '#8a3ab9',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ab9;
$custom-light: #b076cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ab9",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 185
  },
  "hsl": {
    "h": 277.795,
    "s": 52.263,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51646,
    "c": 0.19531,
    "h": 310.2
  },
  "luminance": 0.11932
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A3AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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