#8D5DC7#8D5DC7

#8D5DC7 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.8% C 0.161 H 302.6°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#8D5DC7
RGBrgb(141, 93, 199)
HSLhsl(267, 49%, 57%)
HSVhsv(267, 53%, 78%)
CMYKcmyk(29.1%, 53.3%, 0%, 22%)
CIE-LABlab(49.03, 40.95, -48.22)
CIE-LCHlch(49.03, 63.26, 310.34°)
OKLaboklab(57.77% 0.0868 -0.1359)
OKLCHoklch(57.77% 0.161 302.6)
XYZxyz(25.2053, 17.6149, 56.0939)
Luminance0.1762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5DC7 #97C75D
analogous
#5D62C7 #8D5DC7 #C25DC7
triadic
#8D5DC7 #C78D5D #5DC78D
tetradic
#8D5DC7 #C75D62 #97C75D #5DC7C2
square
#8D5DC7 #C75D62 #97C75D #5DC7C2
split-complementary
#8D5DC7 #C7C25D #62C75D
monochromatic
#512C7E #6E3BAC #8D5DC7 #AD8AD7 #CDB8E6

Accessibility & contrast

On white

4.64
#8D5DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#8D5DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8D5DC7
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5DC7#FFFFFF#000000##FFFFFF
##8D5DC71.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3774CB
Deuteranopia (green-blind)
#4674C4
Tritanopia (blue-blind)
#827189
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8d5dc7;
/* rgb */ color: rgb(141, 93, 199);
/* oklch */ color: oklch(57.8% 0.161 302.6);
Tailwind
colors: {
  custom: {
    50: '#b18cd8',
    500: '#8d5dc7',
    950: '#000000',
  },
}
SCSS
$custom: #8d5dc7;
$custom-light: #b18cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5dc7",
  "rgb": {
    "r": 141,
    "g": 93,
    "b": 199
  },
  "hsl": {
    "h": 267.17,
    "s": 48.624,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57767,
    "c": 0.16122,
    "h": 302.6
  },
  "luminance": 0.17615
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8D5DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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