#8D5EC1#8D5EC1

#8D5EC1 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.6% C 0.152 H 303.9°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8D5EC1
RGBrgb(141, 94, 193)
HSLhsl(268, 44%, 56%)
HSVhsv(268, 51%, 76%)
CMYKcmyk(26.9%, 51.3%, 0%, 24.3%)
CIE-LABlab(48.91, 38.92, -44.95)
CIE-LCHlch(48.91, 59.45, 310.89°)
OKLaboklab(57.57% 0.085 -0.1263)
OKLCHoklch(57.57% 0.152 303.9)
XYZxyz(24.6107, 17.5185, 52.5266)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5EC1 #92C15E
analogous
#5E61C1 #8D5EC1 #BF5EC1
triadic
#8D5EC1 #C18D5E #5EC18D
tetradic
#8D5EC1 #C15E61 #92C15E #5EC1BF
square
#8D5EC1 #C15E61 #92C15E #5EC1BF
split-complementary
#8D5EC1 #C1BF5E #61C15E
monochromatic
#502E77 #6E3FA3 #8D5EC1 #AC8AD2 #CCB6E3

Accessibility & contrast

On white

4.66
#8D5EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#8D5EC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8D5EC1
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5EC1#FFFFFF#000000##FFFFFF
##8D5EC11.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F73C4
Deuteranopia (green-blind)
#4C74BF
Tritanopia (blue-blind)
#847087
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8d5ec1;
/* rgb */ color: rgb(141, 94, 193);
/* oklch */ color: oklch(57.6% 0.152 303.9);
Tailwind
colors: {
  custom: {
    50: '#b18dd4',
    500: '#8d5ec1',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ec1;
$custom-light: #b18dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ec1",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 193
  },
  "hsl": {
    "h": 268.485,
    "s": 44.395,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5757,
    "c": 0.15225,
    "h": 303.9
  },
  "luminance": 0.17518
}

Semantic roles & 50–950 ramp

primary
#8D5EC1
secondary
#BED2A9
accent
#D45497
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8D5EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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