#8C5CE3#8C5CE3

#8C5CE3 is a mid, vivid violet. Relative luminance 0.188; OKLCH L 59.3% C 0.196 H 296.3°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8C5CE3
RGBrgb(140, 92, 227)
HSLhsl(261, 71%, 63%)
HSVhsv(261, 59%, 89%)
CMYKcmyk(38.3%, 59.5%, 0%, 11%)
CIE-LABlab(50.42, 48.37, -61.93)
CIE-LCHlch(50.42, 78.58, 307.99°)
OKLaboklab(59.32% 0.087 -0.1762)
OKLCHoklch(59.32% 0.196 296.3)
XYZxyz(28.5039, 18.7753, 74.7804)
Luminance0.1878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5CE3 #B3E35C
analogous
#5C70E3 #8C5CE3 #CF5CE3
triadic
#8C5CE3 #E38C5C #5CE38C
tetradic
#8C5CE3 #E35C70 #B3E35C #5CE3CF
square
#8C5CE3 #E35C70 #B3E35C #5CE3CF
split-complementary
#8C5CE3 #E3CF5C #70E35C
monochromatic
#4E1DA8 #6728DA #8C5CE3 #B190EC #D6C4F5

Accessibility & contrast

On white

4.42
#8C5CE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#8C5CE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5CE3
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5CE3#FFFFFF#000000##000000
##8C5CE31.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E7
Deuteranopia (green-blind)
#1E76E0
Tritanopia (blue-blind)
#777997
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8c5ce3;
/* rgb */ color: rgb(140, 92, 227);
/* oklch */ color: oklch(59.3% 0.196 296.3);
Tailwind
colors: {
  custom: {
    50: '#b38ced',
    500: '#8c5ce3',
    950: '#000000',
  },
}
SCSS
$custom: #8c5ce3;
$custom-light: #b38ced;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5ce3",
  "rgb": {
    "r": 140,
    "g": 92,
    "b": 227
  },
  "hsl": {
    "h": 261.333,
    "s": 70.681,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59319,
    "c": 0.19649,
    "h": 296.3
  },
  "luminance": 0.18776
}

Semantic roles & 50–950 ramp

primary
#8C5CE3
secondary
#D4E6B5
accent
#D3138E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8C5CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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