#8C5CEB#8C5CEB

#8C5CEB is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 59.9% C 0.206 H 294.9°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8C5CEB
RGBrgb(140, 92, 235)
HSLhsl(260, 78%, 64%)
HSVhsv(260, 61%, 92%)
CMYKcmyk(40.4%, 60.9%, 0%, 7.8%)
CIE-LABlab(50.95, 50.46, -65.58)
CIE-LCHlch(50.95, 82.75, 307.57°)
OKLaboklab(59.87% 0.0866 -0.1869)
OKLCHoklch(59.87% 0.206 294.9)
XYZxyz(29.6338, 19.2272, 80.7311)
Luminance0.1923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5CEB #BBEB5C
analogous
#5C74EB #8C5CEB #D45CEB
triadic
#8C5CEB #EB8C5C #5CEB8C
tetradic
#8C5CEB #EB5C74 #BBEB5C #5CEBD4
square
#8C5CEB #EB5C74 #BBEB5C #5CEBD4
split-complementary
#8C5CEB #EBD45C #74EB5C
monochromatic
#4C16B6 #6625E4 #8C5CEB #B293F2 #D9C9F8

Accessibility & contrast

On white

4.33
#8C5CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#8C5CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5CEB
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5CEB#FFFFFF#000000##000000
##8C5CEB1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#0077E8
Tritanopia (blue-blind)
#737C9B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8c5ceb;
/* rgb */ color: rgb(140, 92, 235);
/* oklch */ color: oklch(59.9% 0.206 294.9);
Tailwind
colors: {
  custom: {
    50: '#b48cf2',
    500: '#8c5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #8c5ceb;
$custom-light: #b48cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5ceb",
  "rgb": {
    "r": 140,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 260.14,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59873,
    "c": 0.206,
    "h": 294.9
  },
  "luminance": 0.19228
}

Semantic roles & 50–950 ramp

primary
#8C5CEB
secondary
#DAEAB8
accent
#DA0B95
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8C5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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