#8D5CE4#8D5CE4

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

Color values

HEX#8D5CE4
RGBrgb(141, 92, 228)
HSLhsl(262, 72%, 63%)
HSVhsv(262, 60%, 89%)
CMYKcmyk(38.2%, 59.6%, 0%, 10.6%)
CIE-LABlab(50.59, 48.85, -62.22)
CIE-LCHlch(50.59, 79.11, 308.13°)
OKLaboklab(59.49% 0.0883 -0.177)
OKLCHoklch(59.49% 0.198 296.5)
XYZxyz(28.8116, 18.9179, 75.5173)
Luminance0.1892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5CE4 #B3E45C
analogous
#5C6FE4 #8D5CE4 #D15CE4
triadic
#8D5CE4 #E48D5C #5CE48D
tetradic
#8D5CE4 #E45C6F #B3E45C #5CE4D1
square
#8D5CE4 #E45C6F #B3E45C #5CE4D1
split-complementary
#8D5CE4 #E4D15C #6FE45C
monochromatic
#4F1CAA #6827DB #8D5CE4 #B291ED #D6C5F5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D5CE4#FFFFFF#000000##000000
##8D5CE41.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)
#0079E8
Deuteranopia (green-blind)
#1E77E1
Tritanopia (blue-blind)
#787A97
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8d5ce4;
/* rgb */ color: rgb(141, 92, 228);
/* oklch */ color: oklch(59.5% 0.198 296.5);
Tailwind
colors: {
  custom: {
    50: '#b48ced',
    500: '#8d5ce4',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ce4;
$custom-light: #b48ced;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ce4",
  "rgb": {
    "r": 141,
    "g": 92,
    "b": 228
  },
  "hsl": {
    "h": 261.618,
    "s": 71.579,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59486,
    "c": 0.19778,
    "h": 296.5
  },
  "luminance": 0.18918
}

Semantic roles & 50–950 ramp

primary
#8D5CE4
secondary
#D5E7B5
accent
#D4128E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #8D5CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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