#8C5CE5#8C5CE5

#8C5CE5 is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.5% C 0.199 H 295.9°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8C5CE5
RGBrgb(140, 92, 229)
HSLhsl(261, 72%, 63%)
HSVhsv(261, 60%, 90%)
CMYKcmyk(38.9%, 59.8%, 0%, 10.2%)
CIE-LABlab(50.55, 48.89, -62.85)
CIE-LCHlch(50.55, 79.63, 307.88°)
OKLaboklab(59.46% 0.0869 -0.1789)
OKLCHoklch(59.46% 0.199 295.9)
XYZxyz(28.7815, 18.8863, 76.2426)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5CE5 #B5E55C
analogous
#5C70E5 #8C5CE5 #D15CE5
triadic
#8C5CE5 #E58C5C #5CE58C
tetradic
#8C5CE5 #E55C70 #B5E55C #5CE5D1
square
#8C5CE5 #E55C70 #B5E55C #5CE5D1
split-complementary
#8C5CE5 #E5D15C #70E55C
monochromatic
#4E1BAB #6727DD #8C5CE5 #B191ED #D6C6F6

Accessibility & contrast

On white

4.40
#8C5CE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#8C5CE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5CE5
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5CE5#FFFFFF#000000##000000
##8C5CE51.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E9
Deuteranopia (green-blind)
#1976E2
Tritanopia (blue-blind)
#767A98
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8c5ce5;
/* rgb */ color: rgb(140, 92, 229);
/* oklch */ color: oklch(59.5% 0.199 295.9);
Tailwind
colors: {
  custom: {
    50: '#b38cee',
    500: '#8c5ce5',
    950: '#000000',
  },
}
SCSS
$custom: #8c5ce5;
$custom-light: #b38cee;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5ce5",
  "rgb": {
    "r": 140,
    "g": 92,
    "b": 229
  },
  "hsl": {
    "h": 261.022,
    "s": 72.487,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59456,
    "c": 0.19888,
    "h": 295.9
  },
  "luminance": 0.18887
}

Semantic roles & 50–950 ramp

primary
#8C5CE5
secondary
#D6E7B6
accent
#D51190
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8C5CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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