#8A3AD2#8A3AD2

#8A3AD2 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.5% C 0.221 H 303.7°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8A3AD2
RGBrgb(138, 58, 210)
HSLhsl(272, 63%, 53%)
HSVhsv(272, 72%, 82%)
CMYKcmyk(34.3%, 72.4%, 0%, 17.6%)
CIE-LABlab(42.89, 60.55, -64.45)
CIE-LCHlch(42.89, 88.43, 313.21°)
OKLaboklab(53.47% 0.1223 -0.1835)
OKLCHoklch(53.47% 0.221 303.7)
XYZxyz(23.6245, 13.0826, 62.2409)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3AD2 #82D23A
analogous
#3E3AD2 #8A3AD2 #D23ACE
triadic
#8A3AD2 #D28A3A #3AD28A
tetradic
#8A3AD2 #D23E3A #82D23A #3ACED2
square
#8A3AD2 #D23E3A #82D23A #3ACED2
split-complementary
#8A3AD2 #CED23A #3AD23E
monochromatic
#4B1B77 #6B26A8 #8A3AD2 #A86CDD #C59EE9

Accessibility & contrast

On white

5.81
#8A3AD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8A3AD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3AD2
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3AD2#FFFFFF#000000##FFFFFF
##8A3AD21.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D6
Deuteranopia (green-blind)
#0065CF
Tritanopia (blue-blind)
#7C5F83
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a3ad2;
/* rgb */ color: rgb(138, 58, 210);
/* oklch */ color: oklch(53.5% 0.221 303.7);
Tailwind
colors: {
  custom: {
    50: '#b277e1',
    500: '#8a3ad2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ad2;
$custom-light: #b277e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ad2",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 210
  },
  "hsl": {
    "h": 271.579,
    "s": 62.81,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53472,
    "c": 0.22053,
    "h": 303.7
  },
  "luminance": 0.13083
}

Semantic roles & 50–950 ramp

primary
#8A3AD2
secondary
#B2D593
accent
#E64290
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8A3AD2

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

Preview Lab → · Contrast checker → · Palette generator →

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