#8D5EC8#8D5EC8

#8D5EC8 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.0% C 0.161 H 302.1°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8D5EC8
RGBrgb(141, 94, 200)
HSLhsl(267, 49%, 58%)
HSVhsv(267, 53%, 78%)
CMYKcmyk(29.5%, 53%, 0%, 21.6%)
CIE-LABlab(49.30, 40.64, -48.36)
CIE-LCHlch(49.30, 63.16, 310.04°)
OKLaboklab(57.99% 0.0855 -0.1363)
OKLCHoklch(57.99% 0.161 302.1)
XYZxyz(25.4102, 17.8382, 56.7368)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5EC8 #99C85E
analogous
#5E64C8 #8D5EC8 #C25EC8
triadic
#8D5EC8 #C88D5E #5EC88D
tetradic
#8D5EC8 #C85E64 #99C85E #5EC8C2
square
#8D5EC8 #C85E64 #99C85E #5EC8C2
split-complementary
#8D5EC8 #C8C25E #64C85E
monochromatic
#512C80 #6E3BAE #8D5EC8 #AD8CD8 #CEB9E7

Accessibility & contrast

On white

4.60
#8D5EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#8D5EC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8D5EC8
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5EC8#FFFFFF#000000##FFFFFF
##8D5EC81.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3874CC
Deuteranopia (green-blind)
#4775C5
Tritanopia (blue-blind)
#82728A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8d5ec8;
/* rgb */ color: rgb(141, 94, 200);
/* oklch */ color: oklch(58.0% 0.161 302.1);
Tailwind
colors: {
  custom: {
    50: '#b18dd9',
    500: '#8d5ec8',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ec8;
$custom-light: #b18dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ec8",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 200
  },
  "hsl": {
    "h": 266.604,
    "s": 49.074,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57988,
    "c": 0.16089,
    "h": 302.1
  },
  "luminance": 0.17838
}

Semantic roles & 50–950 ramp

primary
#8D5EC8
secondary
#C3D6AC
accent
#D94F9C
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C15
muted
#807D83

Preview Lab

Preview with #8D5EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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