#8D5EC7#8D5EC7

#8D5EC7 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 57.9% C 0.160 H 302.4°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8D5EC7
RGBrgb(141, 94, 199)
HSLhsl(267, 48%, 57%)
HSVhsv(267, 53%, 78%)
CMYKcmyk(29.1%, 52.8%, 0%, 22%)
CIE-LABlab(49.24, 40.39, -47.87)
CIE-LCHlch(49.24, 62.64, 310.16°)
OKLaboklab(57.93% 0.0855 -0.1349)
OKLCHoklch(57.93% 0.16 302.4)
XYZxyz(25.2937, 17.7916, 56.1233)
Luminance0.1779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5EC7 #98C75E
analogous
#5E64C7 #8D5EC7 #C15EC7
triadic
#8D5EC7 #C78D5E #5EC78D
tetradic
#8D5EC7 #C75E64 #98C75E #5EC7C1
square
#8D5EC7 #C75E64 #98C75E #5EC7C1
split-complementary
#8D5EC7 #C7C15E #64C75E
monochromatic
#512C7F #6E3CAC #8D5EC7 #AD8BD7 #CDB9E7

Accessibility & contrast

On white

4.61
#8D5EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#8D5EC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8D5EC7
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5EC7#FFFFFF#000000##FFFFFF
##8D5EC71.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3974CB
Deuteranopia (green-blind)
#4875C4
Tritanopia (blue-blind)
#82728A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8d5ec7;
/* rgb */ color: rgb(141, 94, 199);
/* oklch */ color: oklch(57.9% 0.160 302.4);
Tailwind
colors: {
  custom: {
    50: '#b18dd8',
    500: '#8d5ec7',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ec7;
$custom-light: #b18dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ec7",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 199
  },
  "hsl": {
    "h": 266.857,
    "s": 48.387,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57928,
    "c": 0.15966,
    "h": 302.4
  },
  "luminance": 0.17792
}

Semantic roles & 50–950 ramp

primary
#8D5EC7
secondary
#C3D6AB
accent
#D8509B
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8D5EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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