#8D5EC5#8D5EC5

#8D5EC5 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 57.8% C 0.157 H 302.9°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8D5EC5
RGBrgb(141, 94, 197)
HSLhsl(267, 47%, 57%)
HSVhsv(267, 52%, 77%)
CMYKcmyk(28.4%, 52.3%, 0%, 22.7%)
CIE-LABlab(49.13, 39.90, -46.90)
CIE-LCHlch(49.13, 61.57, 310.39°)
OKLaboklab(57.81% 0.0853 -0.132)
OKLCHoklch(57.81% 0.157 302.9)
XYZxyz(25.0630, 17.6994, 54.9084)
Luminance0.1770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5EC5 #96C55E
analogous
#5E62C5 #8D5EC5 #C15EC5
triadic
#8D5EC5 #C58D5E #5EC58D
tetradic
#8D5EC5 #C55E62 #96C55E #5EC5C1
square
#8D5EC5 #C55E62 #96C55E #5EC5C1
split-complementary
#8D5EC5 #C5C15E #62C55E
monochromatic
#512D7C #6E3DA9 #8D5EC5 #AD8BD5 #CDB8E5

Accessibility & contrast

On white

4.63
#8D5EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#8D5EC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8D5EC5
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5EC5#FFFFFF#000000##FFFFFF
##8D5EC51.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B74C9
Deuteranopia (green-blind)
#4975C3
Tritanopia (blue-blind)
#837189
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8d5ec5;
/* rgb */ color: rgb(141, 94, 197);
/* oklch */ color: oklch(57.8% 0.157 302.9);
Tailwind
colors: {
  custom: {
    50: '#b18dd7',
    500: '#8d5ec5',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ec5;
$custom-light: #b18dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ec5",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 197
  },
  "hsl": {
    "h": 267.379,
    "s": 47.032,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57807,
    "c": 0.15719,
    "h": 302.9
  },
  "luminance": 0.17699
}

Semantic roles & 50–950 ramp

primary
#8D5EC5
secondary
#C1D4AA
accent
#D7519A
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8D5EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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