#8A3AB3#8A3AB3

#8A3AB3 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.2% C 0.189 H 311.9°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#8A3AB3
RGBrgb(138, 58, 179)
HSLhsl(280, 51%, 46%)
HSVhsv(280, 68%, 70%)
CMYKcmyk(22.9%, 67.6%, 0%, 29.8%)
CIE-LABlab(40.71, 53.59, -49.90)
CIE-LCHlch(40.71, 73.23, 317.04°)
OKLaboklab(51.23% 0.1265 -0.1408)
OKLCHoklch(51.23% 0.189 311.9)
XYZxyz(20.1295, 11.6846, 43.8341)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AB3 #63B33A
analogous
#4D3AB3 #8A3AB3 #B33AA0
triadic
#8A3AB3 #B38A3A #3AB38A
tetradic
#8A3AB3 #B34D3A #63B33A #3AA0B3
square
#8A3AB3 #B34D3A #63B33A #3AA0B3
split-complementary
#8A3AB3 #A0B33A #3AB34D
monochromatic
#431C57 #662B85 #8A3AB3 #A75FCB #C08DDA

Accessibility & contrast

On white

6.29
#8A3AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8A3AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AB3
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AB3#FFFFFF#000000##FFFFFF
##8A3AB31.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a3ab3;
/* rgb */ color: rgb(138, 58, 179);
/* oklch */ color: oklch(51.2% 0.189 311.9);
Tailwind
colors: {
  custom: {
    50: '#b076ca',
    500: '#8a3ab3',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ab3;
$custom-light: #b076ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ab3",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 179
  },
  "hsl": {
    "h": 279.669,
    "s": 51.055,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51233,
    "c": 0.18927,
    "h": 311.9
  },
  "luminance": 0.11684
}

Semantic roles & 50–950 ramp

primary
#8A3AB3
secondary
#9AC584
accent
#DB4D7D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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