#8C5CE4#8C5CE4

#8C5CE4 is a mid, vivid violet. Relative luminance 0.188; OKLCH L 59.4% C 0.198 H 296.1°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8C5CE4
RGBrgb(140, 92, 228)
HSLhsl(261, 72%, 63%)
HSVhsv(261, 60%, 89%)
CMYKcmyk(38.6%, 59.6%, 0%, 10.6%)
CIE-LABlab(50.49, 48.63, -62.39)
CIE-LCHlch(50.49, 79.11, 307.93°)
OKLaboklab(59.39% 0.087 -0.1775)
OKLCHoklch(59.39% 0.198 296.1)
XYZxyz(28.6423, 18.8306, 75.5094)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5CE4 #B4E45C
analogous
#5C70E4 #8C5CE4 #D05CE4
triadic
#8C5CE4 #E48C5C #5CE48C
tetradic
#8C5CE4 #E45C70 #B4E45C #5CE4D0
square
#8C5CE4 #E45C70 #B4E45C #5CE4D0
split-complementary
#8C5CE4 #E4D05C #70E45C
monochromatic
#4E1CAA #6727DB #8C5CE4 #B191ED #D6C5F5

Accessibility & contrast

On white

4.41
#8C5CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#8C5CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5CE4
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5CE4#FFFFFF#000000##000000
##8C5CE41.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E8
Deuteranopia (green-blind)
#1C76E1
Tritanopia (blue-blind)
#767A97
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8c5ce4;
/* rgb */ color: rgb(140, 92, 228);
/* oklch */ color: oklch(59.4% 0.198 296.1);
Tailwind
colors: {
  custom: {
    50: '#b38ced',
    500: '#8c5ce4',
    950: '#000000',
  },
}
SCSS
$custom: #8c5ce4;
$custom-light: #b38ced;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5ce4",
  "rgb": {
    "r": 140,
    "g": 92,
    "b": 228
  },
  "hsl": {
    "h": 261.176,
    "s": 71.579,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59388,
    "c": 0.19768,
    "h": 296.1
  },
  "luminance": 0.18831
}

Semantic roles & 50–950 ramp

primary
#8C5CE4
secondary
#D5E7B5
accent
#D4128F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8C5CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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