#8C5BE7#8C5BE7

#8C5BE7 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.4% C 0.203 H 295.7°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8C5BE7
RGBrgb(140, 91, 231)
HSLhsl(261, 74%, 63%)
HSVhsv(261, 61%, 91%)
CMYKcmyk(39.4%, 60.6%, 0%, 9.4%)
CIE-LABlab(50.48, 49.95, -64.09)
CIE-LCHlch(50.48, 81.26, 307.93°)
OKLaboklab(59.45% 0.088 -0.1825)
OKLCHoklch(59.45% 0.203 295.7)
XYZxyz(28.9763, 18.8266, 77.6930)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5BE7 #B6E75B
analogous
#5B70E7 #8C5BE7 #D25BE7
triadic
#8C5BE7 #E78C5B #5BE78C
tetradic
#8C5BE7 #E75B70 #B6E75B #5BE7D2
square
#8C5BE7 #E75B70 #B6E75B #5BE7D2
split-complementary
#8C5BE7 #E7D25B #70E75B
monochromatic
#4E19AE #6726DF #8C5BE7 #B190EF #D7C6F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C5BE7#FFFFFF#000000##000000
##8C5BE71.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)
#0079EB
Deuteranopia (green-blind)
#0D76E4
Tritanopia (blue-blind)
#757A99
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8c5be7;
/* rgb */ color: rgb(140, 91, 231);
/* oklch */ color: oklch(59.4% 0.203 295.7);
Tailwind
colors: {
  custom: {
    50: '#b38cef',
    500: '#8c5be7',
    950: '#000000',
  },
}
SCSS
$custom: #8c5be7;
$custom-light: #b38cef;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5be7",
  "rgb": {
    "r": 140,
    "g": 91,
    "b": 231
  },
  "hsl": {
    "h": 261,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59447,
    "c": 0.2026,
    "h": 295.7
  },
  "luminance": 0.18827
}

Semantic roles & 50–950 ramp

primary
#8C5BE7
secondary
#D6E8B6
accent
#D70F91
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8C5BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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