#8A5DC6#8A5DC6

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

Color values

HEX#8A5DC6
RGBrgb(138, 93, 198)
HSLhsl(266, 48%, 57%)
HSVhsv(266, 53%, 78%)
CMYKcmyk(30.3%, 53%, 0%, 22.4%)
CIE-LABlab(48.65, 39.93, -48.26)
CIE-LCHlch(48.65, 62.64, 309.60°)
OKLaboklab(57.4% 0.0829 -0.1361)
OKLCHoklch(57.4% 0.159 301.3)
XYZxyz(24.5863, 17.3091, 55.4608)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DC6 #99C65D
analogous
#5D65C6 #8A5DC6 #BE5DC6
triadic
#8A5DC6 #C68A5D #5DC68A
tetradic
#8A5DC6 #C65D65 #99C65D #5DC6BE
square
#8A5DC6 #C65D65 #99C65D #5DC6BE
split-complementary
#8A5DC6 #C6BE5D #65C65D
monochromatic
#4F2C7D #6B3CAA #8A5DC6 #AB8AD6 #CBB8E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5DC6#FFFFFF#000000##FFFFFF
##8A5DC61.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3773CA
Deuteranopia (green-blind)
#4573C3
Tritanopia (blue-blind)
#7E7189
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5dc6;
/* rgb */ color: rgb(138, 93, 198);
/* oklch */ color: oklch(57.4% 0.159 301.3);
Tailwind
colors: {
  custom: {
    50: '#af8cd8',
    500: '#8a5dc6',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dc6;
$custom-light: #af8cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dc6",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 198
  },
  "hsl": {
    "h": 265.714,
    "s": 47.945,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57395,
    "c": 0.15935,
    "h": 301.3
  },
  "luminance": 0.17309
}

Semantic roles & 50–950 ramp

primary
#8A5DC6
secondary
#C2D5AA
accent
#D8509E
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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