#8A5AD1#8A5AD1

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

Color values

HEX#8A5AD1
RGBrgb(138, 90, 209)
HSLhsl(264, 56%, 59%)
HSVhsv(264, 57%, 82%)
CMYKcmyk(34%, 56.9%, 0%, 18%)
CIE-LABlab(48.66, 44.38, -54.56)
CIE-LCHlch(48.66, 70.33, 309.13°)
OKLaboklab(57.62% 0.0871 -0.1545)
OKLCHoklch(57.62% 0.177 299.4)
XYZxyz(25.6432, 17.3188, 62.3011)
Luminance0.1732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AD1 #A1D15A
analogous
#5A65D1 #8A5AD1 #C55AD1
triadic
#8A5AD1 #D18A5A #5AD18A
tetradic
#8A5AD1 #D15A65 #A1D15A #5AD1C5
square
#8A5AD1 #D15A65 #A1D15A #5AD1C5
split-complementary
#8A5AD1 #D1C55A #65D15A
monochromatic
#4F278A #6A34BA #8A5AD1 #AC8ADE #CEBAEC

Accessibility & contrast

On white

4.70
#8A5AD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#8A5AD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AD1
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AD1#FFFFFF#000000##FFFFFF
##8A5AD11.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2273D5
Deuteranopia (green-blind)
#3573CE
Tritanopia (blue-blind)
#7B728D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5ad1;
/* rgb */ color: rgb(138, 90, 209);
/* oklch */ color: oklch(57.6% 0.177 299.4);
Tailwind
colors: {
  custom: {
    50: '#b08ae0',
    500: '#8a5ad1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ad1;
$custom-light: #b08ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ad1",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 209
  },
  "hsl": {
    "h": 264.202,
    "s": 56.398,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57615,
    "c": 0.17739,
    "h": 299.4
  },
  "luminance": 0.17319
}

Semantic roles & 50–950 ramp

primary
#8A5AD1
secondary
#C8DBAC
accent
#E048A3
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5AD1

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

Preview Lab → · Contrast checker → · Palette generator →

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