#8C5DEC#8C5DEC

#8C5DEC is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.1% C 0.206 H 294.5°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8C5DEC
RGBrgb(140, 93, 236)
HSLhsl(260, 79%, 65%)
HSVhsv(260, 61%, 93%)
CMYKcmyk(40.7%, 60.6%, 0%, 7.5%)
CIE-LABlab(51.22, 50.18, -65.71)
CIE-LCHlch(51.22, 82.68, 307.37°)
OKLaboklab(60.09% 0.0855 -0.1873)
OKLCHoklch(60.09% 0.206 294.5)
XYZxyz(29.8659, 19.4596, 81.5231)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5DEC #BDEC5D
analogous
#5D76EC #8C5DEC #D35DEC
triadic
#8C5DEC #EC8C5D #5DEC8C
tetradic
#8C5DEC #EC5D76 #BDEC5D #5DECD3
square
#8C5DEC #EC5D76 #BDEC5D #5DECD3
split-complementary
#8C5DEC #ECD35D #76EC5D
monochromatic
#4B16B9 #6526E6 #8C5DEC #B394F2 #DACBF9

Accessibility & contrast

On white

4.29
#8C5DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#8C5DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5DEC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5DEC#FFFFFF#000000##000000
##8C5DEC1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF1
Deuteranopia (green-blind)
#0078E9
Tritanopia (blue-blind)
#737D9C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8c5dec;
/* rgb */ color: rgb(140, 93, 236);
/* oklch */ color: oklch(60.1% 0.206 294.5);
Tailwind
colors: {
  custom: {
    50: '#b48df3',
    500: '#8c5dec',
    950: '#000000',
  },
}
SCSS
$custom: #8c5dec;
$custom-light: #b48df3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5dec",
  "rgb": {
    "r": 140,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 259.72,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.6009,
    "c": 0.20586,
    "h": 294.5
  },
  "luminance": 0.1946
}

Semantic roles & 50–950 ramp

primary
#8C5DEC
secondary
#DBEBBA
accent
#DB0A97
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8C5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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