#8D5CEC#8D5CEC

#8D5CEC is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.0% C 0.207 H 295.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8D5CEC
RGBrgb(141, 92, 236)
HSLhsl(260, 79%, 64%)
HSVhsv(260, 61%, 93%)
CMYKcmyk(40.3%, 61%, 0%, 7.5%)
CIE-LABlab(51.12, 50.92, -65.87)
CIE-LCHlch(51.12, 83.26, 307.71°)
OKLaboklab(60.04% 0.0879 -0.1877)
OKLCHoklch(60.04% 0.207 295.1)
XYZxyz(29.9480, 19.3725, 81.5020)
Luminance0.1937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5CEC #BBEC5C
analogous
#5C73EC #8D5CEC #D55CEC
triadic
#8D5CEC #EC8D5C #5CEC8D
tetradic
#8D5CEC #EC5C73 #BBEC5C #5CECD5
square
#8D5CEC #EC5C73 #BBEC5C #5CECD5
split-complementary
#8D5CEC #ECD55C #73EC5C
monochromatic
#4D15B8 #6725E6 #8D5CEC #B393F2 #DACAF9

Accessibility & contrast

On white

4.31
#8D5CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#8D5CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D5CEC
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5CEC#FFFFFF#000000##000000
##8D5CEC1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF1
Deuteranopia (green-blind)
#0078E9
Tritanopia (blue-blind)
#747C9C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8d5cec;
/* rgb */ color: rgb(141, 92, 236);
/* oklch */ color: oklch(60.0% 0.207 295.1);
Tailwind
colors: {
  custom: {
    50: '#b48cf3',
    500: '#8d5cec',
    950: '#000000',
  },
}
SCSS
$custom: #8d5cec;
$custom-light: #b48cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5cec",
  "rgb": {
    "r": 141,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 260.417,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.6004,
    "c": 0.20726,
    "h": 295.1
  },
  "luminance": 0.19373
}

Semantic roles & 50–950 ramp

primary
#8D5CEC
secondary
#DAEBB9
accent
#DB0A94
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8D5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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