#8C5CE6#8C5CE6

#8C5CE6 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.5% C 0.200 H 295.7°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8C5CE6
RGBrgb(140, 92, 230)
HSLhsl(261, 73%, 63%)
HSVhsv(261, 60%, 90%)
CMYKcmyk(39.1%, 60%, 0%, 9.8%)
CIE-LABlab(50.62, 49.15, -63.31)
CIE-LCHlch(50.62, 80.15, 307.82°)
OKLaboklab(59.52% 0.0869 -0.1802)
OKLCHoklch(59.52% 0.2 295.7)
XYZxyz(28.9216, 18.9423, 76.9800)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5CE6 #B6E65C
analogous
#5C71E6 #8C5CE6 #D15CE6
triadic
#8C5CE6 #E68C5C #5CE68C
tetradic
#8C5CE6 #E65C71 #B6E65C #5CE6D1
square
#8C5CE6 #E65C71 #B6E65C #5CE6D1
split-complementary
#8C5CE6 #E6D15C #71E65C
monochromatic
#4E1BAD #6727DE #8C5CE6 #B191EE #D7C6F6

Accessibility & contrast

On white

4.39
#8C5CE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#8C5CE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5CE6
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5CE6#FFFFFF#000000##000000
##8C5CE61.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EA
Deuteranopia (green-blind)
#1677E3
Tritanopia (blue-blind)
#767A98
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8c5ce6;
/* rgb */ color: rgb(140, 92, 230);
/* oklch */ color: oklch(59.5% 0.200 295.7);
Tailwind
colors: {
  custom: {
    50: '#b38cef',
    500: '#8c5ce6',
    950: '#000000',
  },
}
SCSS
$custom: #8c5ce6;
$custom-light: #b38cef;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5ce6",
  "rgb": {
    "r": 140,
    "g": 92,
    "b": 230
  },
  "hsl": {
    "h": 260.87,
    "s": 73.404,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59525,
    "c": 0.20006,
    "h": 295.7
  },
  "luminance": 0.18943
}

Semantic roles & 50–950 ramp

primary
#8C5CE6
secondary
#D6E8B6
accent
#D61091
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #8C5CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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