#8E5DCA#8E5DCA

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

Color values

HEX#8E5DCA
RGBrgb(142, 93, 202)
HSLhsl(267, 51%, 58%)
HSVhsv(267, 54%, 79%)
CMYKcmyk(29.7%, 54%, 0%, 20.8%)
CIE-LABlab(49.31, 41.95, -49.49)
CIE-LCHlch(49.31, 64.87, 310.29°)
OKLaboklab(58.06% 0.0882 -0.1396)
OKLCHoklch(58.06% 0.165 302.3)
XYZxyz(25.7279, 17.8437, 57.9544)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5DCA #99CA5D
analogous
#5D63CA #8E5DCA #C45DCA
triadic
#8E5DCA #CA8E5D #5DCA8E
tetradic
#8E5DCA #CA5D63 #99CA5D #5DCAC4
square
#8E5DCA #CA5D63 #99CA5D #5DCAC4
split-complementary
#8E5DCA #CAC45D #63CA5D
monochromatic
#522B82 #6F3AB0 #8E5DCA #AE8BD9 #CEB9E8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E5DCA#FFFFFF#000000##FFFFFF
##8E5DCA1.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)
#3574CE
Deuteranopia (green-blind)
#4575C7
Tritanopia (blue-blind)
#83728B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8e5dca;
/* rgb */ color: rgb(142, 93, 202);
/* oklch */ color: oklch(58.1% 0.165 302.3);
Tailwind
colors: {
  custom: {
    50: '#b28cdb',
    500: '#8e5dca',
    950: '#000000',
  },
}
SCSS
$custom: #8e5dca;
$custom-light: #b28cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5dca",
  "rgb": {
    "r": 142,
    "g": 93,
    "b": 202
  },
  "hsl": {
    "h": 266.972,
    "s": 50.698,
    "l": 57.843
  },
  "oklch": {
    "l": 0.58055,
    "c": 0.16511,
    "h": 302.3
  },
  "luminance": 0.17844
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8E5DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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