#8C5DE2#8C5DE2

#8C5DE2 is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.4% C 0.194 H 296.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8C5DE2
RGBrgb(140, 93, 226)
HSLhsl(261, 70%, 63%)
HSVhsv(261, 59%, 89%)
CMYKcmyk(38.1%, 58.8%, 0%, 11.4%)
CIE-LABlab(50.56, 47.57, -61.14)
CIE-LCHlch(50.56, 77.47, 307.88°)
OKLaboklab(59.4% 0.0859 -0.1738)
OKLCHoklch(59.4% 0.194 296.3)
XYZxyz(28.4535, 18.8946, 74.0847)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C5DE2 #B3E25D
analogous
#5D70E2 #8C5DE2 #CF5DE2
triadic
#8C5DE2 #E28C5D #5DE28C
tetradic
#8C5DE2 #E25D70 #B3E25D #5DE2CF
square
#8C5DE2 #E25D70 #B3E25D #5DE2CF
split-complementary
#8C5DE2 #E2CF5D #70E25D
monochromatic
#4E1EA7 #6729D9 #8C5DE2 #B191EB #D6C5F5

Accessibility & contrast

On white

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

On black

4.78
#8C5DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C5DE2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C5DE2#FFFFFF#000000##000000
##8C5DE21.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E6
Deuteranopia (green-blind)
#2377DF
Tritanopia (blue-blind)
#777A97
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8c5de2;
/* rgb */ color: rgb(140, 93, 226);
/* oklch */ color: oklch(59.4% 0.194 296.3);
Tailwind
colors: {
  custom: {
    50: '#b38dec',
    500: '#8c5de2',
    950: '#000000',
  },
}
SCSS
$custom: #8c5de2;
$custom-light: #b38dec;
$custom-dark: #000000;
JSON
{
  "hex": "#8c5de2",
  "rgb": {
    "r": 140,
    "g": 93,
    "b": 226
  },
  "hsl": {
    "h": 261.203,
    "s": 69.634,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59401,
    "c": 0.1939,
    "h": 296.3
  },
  "luminance": 0.18895
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8C5DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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