#8D5EF1#8D5EF1

#8D5EF1 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.7% C 0.211 H 293.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8D5EF1
RGBrgb(141, 94, 241)
HSLhsl(259, 84%, 66%)
HSVhsv(259, 61%, 95%)
CMYKcmyk(41.5%, 61%, 0%, 5.5%)
CIE-LABlab(51.86, 51.16, -67.48)
CIE-LCHlch(51.86, 84.68, 307.17°)
OKLaboklab(60.68% 0.0854 -0.1924)
OKLCHoklch(60.68% 0.211 293.9)
XYZxyz(30.8601, 20.0182, 85.4400)
Luminance0.2002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5EF1 #C2F15E
analogous
#5E78F1 #8D5EF1 #D75EF1
triadic
#8D5EF1 #F18D5E #5EF18D
tetradic
#8D5EF1 #F15E78 #C2F15E #5EF1D7
square
#8D5EF1 #F15E78 #C2F15E #5EF1D7
split-complementary
#8D5EF1 #F1D75E #78F15E
monochromatic
#4A11C4 #6526EC #8D5EF1 #B596F6 #DDCFFB

Accessibility & contrast

On white

4.20
#8D5EF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8D5EF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D5EF1
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5EF1#FFFFFF#000000##000000
##8D5EF11.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF6
Deuteranopia (green-blind)
#0079EE
Tritanopia (blue-blind)
#727F9F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8d5ef1;
/* rgb */ color: rgb(141, 94, 241);
/* oklch */ color: oklch(60.7% 0.211 293.9);
Tailwind
colors: {
  custom: {
    50: '#b58ef6',
    500: '#8d5ef1',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ef1;
$custom-light: #b58ef6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ef1",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 241
  },
  "hsl": {
    "h": 259.184,
    "s": 84,
    "l": 65.686
  },
  "oklch": {
    "l": 0.60684,
    "c": 0.21052,
    "h": 293.9
  },
  "luminance": 0.20019
}

Semantic roles & 50–950 ramp

primary
#8D5EF1
secondary
#DEEEBD
accent
#E0059A
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8D5EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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