#8D5EC9#8D5EC9

#8D5EC9 is a mid, vivid violet. Relative luminance 0.179; OKLCH L 58.0% C 0.162 H 301.9°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#8D5EC9
RGBrgb(141, 94, 201)
HSLhsl(266, 50%, 58%)
HSVhsv(266, 53%, 79%)
CMYKcmyk(29.9%, 53.2%, 0%, 21.2%)
CIE-LABlab(49.36, 40.89, -48.84)
CIE-LCHlch(49.36, 63.69, 309.94°)
OKLaboklab(58.05% 0.0856 -0.1377)
OKLCHoklch(58.05% 0.162 301.9)
XYZxyz(25.5274, 17.8851, 57.3543)
Luminance0.1789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5EC9 #9AC95E
analogous
#5E65C9 #8D5EC9 #C25EC9
triadic
#8D5EC9 #C98D5E #5EC98D
tetradic
#8D5EC9 #C95E65 #9AC95E #5EC9C2
square
#8D5EC9 #C95E65 #9AC95E #5EC9C2
split-complementary
#8D5EC9 #C9C25E #65C95E
monochromatic
#512B81 #6E3BAF #8D5EC9 #AD8CD8 #CEBAE8

Accessibility & contrast

On white

4.59
#8D5EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#8D5EC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8D5EC9
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5EC9#FFFFFF#000000##FFFFFF
##8D5EC91.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3775CD
Deuteranopia (green-blind)
#4675C6
Tritanopia (blue-blind)
#82728A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8d5ec9;
/* rgb */ color: rgb(141, 94, 201);
/* oklch */ color: oklch(58.0% 0.162 301.9);
Tailwind
colors: {
  custom: {
    50: '#b18dda',
    500: '#8d5ec9',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ec9;
$custom-light: #b18dda;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ec9",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 201
  },
  "hsl": {
    "h": 266.355,
    "s": 49.767,
    "l": 57.843
  },
  "oklch": {
    "l": 0.58049,
    "c": 0.16212,
    "h": 301.9
  },
  "luminance": 0.17885
}

Semantic roles & 50–950 ramp

primary
#8D5EC9
secondary
#C4D7AC
accent
#D94F9C
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8D5EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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