#8D51E1#8D51E1

#8D51E1 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.7% C 0.209 H 298.8°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8D51E1
RGBrgb(141, 81, 225)
HSLhsl(265, 71%, 60%)
HSVhsv(265, 64%, 88%)
CMYKcmyk(37.3%, 64%, 0%, 11.8%)
CIE-LABlab(48.24, 53.86, -64.33)
CIE-LCHlch(48.24, 83.90, 309.94°)
OKLaboklab(57.72% 0.1008 -0.1831)
OKLCHoklch(57.72% 0.209 298.8)
XYZxyz(27.5141, 16.9835, 73.0481)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51E1 #A5E151
analogous
#515DE1 #8D51E1 #D551E1
triadic
#8D51E1 #E18D51 #51E18D
tetradic
#8D51E1 #E1515D #A5E151 #51E1D5
square
#8D51E1 #E1515D #A5E151 #51E1D5
split-complementary
#8D51E1 #E1D551 #5DE151
monochromatic
#511B9D #6C24D1 #8D51E1 #AF85EA #D1B9F3

Accessibility & contrast

On white

4.78
#8D51E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#8D51E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51E1
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51E1#FFFFFF#000000##FFFFFF
##8D51E11.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E5
Deuteranopia (green-blind)
#0071DE
Tritanopia (blue-blind)
#7A7292
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8d51e1;
/* rgb */ color: rgb(141, 81, 225);
/* oklch */ color: oklch(57.7% 0.209 298.8);
Tailwind
colors: {
  custom: {
    50: '#b485eb',
    500: '#8d51e1',
    950: '#000000',
  },
}
SCSS
$custom: #8d51e1;
$custom-light: #b485eb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51e1",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 225
  },
  "hsl": {
    "h": 265,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.57716,
    "c": 0.20904,
    "h": 298.8
  },
  "luminance": 0.16984
}

Semantic roles & 50–950 ramp

primary
#8D51E1
secondary
#CCE3AB
accent
#ED3AA3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8D51E1

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

Preview Lab → · Contrast checker → · Palette generator →

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