#8D5ECC#8D5ECC

#8D5ECC is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.2% C 0.166 H 301.1°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8D5ECC
RGBrgb(141, 94, 204)
HSLhsl(266, 52%, 58%)
HSVhsv(266, 54%, 80%)
CMYKcmyk(30.9%, 53.9%, 0%, 20%)
CIE-LABlab(49.53, 41.64, -50.28)
CIE-LCHlch(49.53, 65.28, 309.63°)
OKLaboklab(58.23% 0.0857 -0.1419)
OKLCHoklch(58.23% 0.166 301.1)
XYZxyz(25.8838, 18.0277, 59.2311)
Luminance0.1803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5ECC #9DCC5E
analogous
#5E66CC #8D5ECC #C45ECC
triadic
#8D5ECC #CC8D5E #5ECC8D
tetradic
#8D5ECC #CC5E66 #9DCC5E #5ECCC4
square
#8D5ECC #CC5E66 #9DCC5E #5ECCC4
split-complementary
#8D5ECC #CCC45E #66CC5E
monochromatic
#512A85 #6D39B4 #8D5ECC #AE8CDB #CFBBE9

Accessibility & contrast

On white

4.56
#8D5ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#8D5ECC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D5ECC
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5ECC#FFFFFF#000000##000000
##8D5ECC1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3475D0
Deuteranopia (green-blind)
#4375C9
Tritanopia (blue-blind)
#81738C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8d5ecc;
/* rgb */ color: rgb(141, 94, 204);
/* oklch */ color: oklch(58.2% 0.166 301.1);
Tailwind
colors: {
  custom: {
    50: '#b28ddc',
    500: '#8d5ecc',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ecc;
$custom-light: #b28ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ecc",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 204
  },
  "hsl": {
    "h": 265.636,
    "s": 51.887,
    "l": 58.431
  },
  "oklch": {
    "l": 0.58233,
    "c": 0.16581,
    "h": 301.1
  },
  "luminance": 0.18028
}

Semantic roles & 50–950 ramp

primary
#8D5ECC
secondary
#C6D9AD
accent
#DB4C9E
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8D5ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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