#8D5EC2#8D5EC2

#8D5EC2 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.6% C 0.153 H 303.7°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8D5EC2
RGBrgb(141, 94, 194)
HSLhsl(268, 45%, 56%)
HSVhsv(268, 52%, 76%)
CMYKcmyk(27.3%, 51.5%, 0%, 23.9%)
CIE-LABlab(48.96, 39.16, -45.44)
CIE-LCHlch(48.96, 59.99, 310.76°)
OKLaboklab(57.63% 0.0851 -0.1277)
OKLCHoklch(57.63% 0.153 303.7)
XYZxyz(24.7227, 17.5632, 53.1161)
Luminance0.1756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5EC2 #93C25E
analogous
#5E61C2 #8D5EC2 #BF5EC2
triadic
#8D5EC2 #C28D5E #5EC28D
tetradic
#8D5EC2 #C25E61 #93C25E #5EC2BF
square
#8D5EC2 #C25E61 #93C25E #5EC2BF
split-complementary
#8D5EC2 #C2BF5E #61C25E
monochromatic
#512E78 #6E3EA4 #8D5EC2 #AC8AD3 #CCB7E4

Accessibility & contrast

On white

4.65
#8D5EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#8D5EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8D5EC2
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5EC2#FFFFFF#000000##FFFFFF
##8D5EC21.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E73C5
Deuteranopia (green-blind)
#4B74C0
Tritanopia (blue-blind)
#847087
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8d5ec2;
/* rgb */ color: rgb(141, 94, 194);
/* oklch */ color: oklch(57.6% 0.153 303.7);
Tailwind
colors: {
  custom: {
    50: '#b18dd5',
    500: '#8d5ec2',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ec2;
$custom-light: #b18dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ec2",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 268.2,
    "s": 45.045,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57629,
    "c": 0.15349,
    "h": 303.7
  },
  "luminance": 0.17563
}

Semantic roles & 50–950 ramp

primary
#8D5EC2
secondary
#BFD2A9
accent
#D55398
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8D5EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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