#8A5AD0#8A5AD0

#8A5AD0 is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.6% C 0.176 H 299.6°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8A5AD0
RGBrgb(138, 90, 208)
HSLhsl(264, 56%, 58%)
HSVhsv(264, 57%, 82%)
CMYKcmyk(33.7%, 56.7%, 0%, 18.4%)
CIE-LABlab(48.60, 44.13, -54.08)
CIE-LCHlch(48.60, 69.80, 309.21°)
OKLaboklab(57.55% 0.0871 -0.1532)
OKLCHoklch(57.55% 0.176 299.6)
XYZxyz(25.5198, 17.2695, 61.6511)
Luminance0.1727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AD0 #A0D05A
analogous
#5A65D0 #8A5AD0 #C55AD0
triadic
#8A5AD0 #D08A5A #5AD08A
tetradic
#8A5AD0 #D05A65 #A0D05A #5AD0C5
square
#8A5AD0 #D05A65 #A0D05A #5AD0C5
split-complementary
#8A5AD0 #D0C55A #65D05A
monochromatic
#4F2789 #6A34B8 #8A5AD0 #AC8ADE #CEB9EB

Accessibility & contrast

On white

4.71
#8A5AD0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#8A5AD0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AD0
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AD0#FFFFFF#000000##FFFFFF
##8A5AD01.004.714.454.71
#FFFFFF4.711.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2373D4
Deuteranopia (green-blind)
#3772CD
Tritanopia (blue-blind)
#7B728C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5ad0;
/* rgb */ color: rgb(138, 90, 208);
/* oklch */ color: oklch(57.6% 0.176 299.6);
Tailwind
colors: {
  custom: {
    50: '#b08adf',
    500: '#8a5ad0',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ad0;
$custom-light: #b08adf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ad0",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 208
  },
  "hsl": {
    "h": 264.407,
    "s": 55.66,
    "l": 58.431
  },
  "oklch": {
    "l": 0.5755,
    "c": 0.17617,
    "h": 299.6
  },
  "luminance": 0.1727
}

Semantic roles & 50–950 ramp

primary
#8A5AD0
secondary
#C7DAAB
accent
#DF49A2
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5AD0

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

Preview Lab → · Contrast checker → · Palette generator →

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