#8D5BC7#8D5BC7

#8D5BC7 is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.5% C 0.164 H 303.0°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8D5BC7
RGBrgb(141, 91, 199)
HSLhsl(268, 49%, 57%)
HSVhsv(268, 54%, 78%)
CMYKcmyk(29.1%, 54.3%, 0%, 22%)
CIE-LABlab(48.60, 42.06, -48.90)
CIE-LCHlch(48.60, 64.50, 310.70°)
OKLaboklab(57.45% 0.0894 -0.1379)
OKLCHoklch(57.45% 0.164 303)
XYZxyz(25.0321, 17.2684, 56.0361)
Luminance0.1727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5BC7 #95C75B
analogous
#5B5FC7 #8D5BC7 #C35BC7
triadic
#8D5BC7 #C78D5B #5BC78D
tetradic
#8D5BC7 #C75B5F #95C75B #5BC7C3
square
#8D5BC7 #C75B5F #95C75B #5BC7C3
split-complementary
#8D5BC7 #C7C35B #5FC75B
monochromatic
#512B7D #6E3AAB #8D5BC7 #AD89D7 #CCB6E6

Accessibility & contrast

On white

4.72
#8D5BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8D5BC7
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5BC7#FFFFFF#000000##FFFFFF
##8D5BC71.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3372CB
Deuteranopia (green-blind)
#4473C4
Tritanopia (blue-blind)
#827088
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8d5bc7;
/* rgb */ color: rgb(141, 91, 199);
/* oklch */ color: oklch(57.5% 0.164 303.0);
Tailwind
colors: {
  custom: {
    50: '#b18bd8',
    500: '#8d5bc7',
    950: '#000000',
  },
}
SCSS
$custom: #8d5bc7;
$custom-light: #b18bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5bc7",
  "rgb": {
    "r": 141,
    "g": 91,
    "b": 199
  },
  "hsl": {
    "h": 267.778,
    "s": 49.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5745,
    "c": 0.16432,
    "h": 303
  },
  "luminance": 0.17268
}

Semantic roles & 50–950 ramp

primary
#8D5BC7
secondary
#C1D5A9
accent
#D94F99
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8D5BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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