#8C5CCC#8C5CCC

#8C5CCC is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.8% C 0.169 H 301.1°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8C5CCC
RGBrgb(140, 92, 204)
HSLhsl(266, 52%, 58%)
HSVhsv(266, 55%, 80%)
CMYKcmyk(31.4%, 54.9%, 0%, 20%)
CIE-LABlab(48.99, 42.50, -51.15)
CIE-LCHlch(48.99, 66.50, 309.72°)
OKLaboklab(57.81% 0.087 -0.1445)
OKLCHoklch(57.81% 0.169 301.1)
XYZxyz(25.5389, 17.5893, 59.1646)
Luminance0.1759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5CCC #9CCC5C
analogous
#5C64CC #8C5CCC #C45CCC
triadic
#8C5CCC #CC8C5C #5CCC8C
tetradic
#8C5CCC #CC5C64 #9CCC5C #5CCCC4
square
#8C5CCC #CC5C64 #9CCC5C #5CCCC4
split-complementary
#8C5CCC #CCC45C #64CC5C
monochromatic
#502984 #6D38B3 #8C5CCC #AD8BDB #CEB9E9

Accessibility & contrast

On white

4.65
#8C5CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#8C5CCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8C5CCC
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5CCC#FFFFFF#000000##FFFFFF
##8C5CCC1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F74D0
Deuteranopia (green-blind)
#4074C9
Tritanopia (blue-blind)
#7F728B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8c5ccc;
/* rgb */ color: rgb(140, 92, 204);
/* oklch */ color: oklch(57.8% 0.169 301.1);
Tailwind
colors: {
  custom: {
    50: '#b18cdc',
    500: '#8c5ccc',
    950: '#000000',
  },
}
SCSS
$custom: #8c5ccc;
$custom-light: #b18cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5ccc",
  "rgb": {
    "r": 140,
    "g": 92,
    "b": 204
  },
  "hsl": {
    "h": 265.714,
    "s": 52.336,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57813,
    "c": 0.16867,
    "h": 301.1
  },
  "luminance": 0.17589
}

Semantic roles & 50–950 ramp

primary
#8C5CCC
secondary
#C5D8AC
accent
#DC4C9E
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8C5CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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