#8D51C6#8D51C6

#8D51C6 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.9% C 0.178 H 305.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8D51C6
RGBrgb(141, 81, 198)
HSLhsl(271, 51%, 55%)
HSVhsv(271, 59%, 78%)
CMYKcmyk(28.8%, 59.1%, 0%, 22.4%)
CIE-LABlab(46.48, 47.24, -51.71)
CIE-LCHlch(46.48, 70.04, 312.41°)
OKLaboklab(55.88% 0.1021 -0.1461)
OKLCHoklch(55.88% 0.178 305)
XYZxyz(24.1178, 15.6249, 55.1605)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51C6 #8AC651
analogous
#5351C6 #8D51C6 #C651C5
triadic
#8D51C6 #C68D51 #51C68D
tetradic
#8D51C6 #C65351 #8AC651 #51C5C6
square
#8D51C6 #C65351 #8AC651 #51C5C6
split-complementary
#8D51C6 #C5C651 #51C653
monochromatic
#4F2776 #6E36A4 #8D51C6 #AB7FD5 #C9ADE4

Accessibility & contrast

On white

5.09
#8D51C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8D51C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51C6
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51C6#FFFFFF#000000##FFFFFF
##8D51C61.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C6CCA
Deuteranopia (green-blind)
#386EC3
Tritanopia (blue-blind)
#836884
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8d51c6;
/* rgb */ color: rgb(141, 81, 198);
/* oklch */ color: oklch(55.9% 0.178 305.0);
Tailwind
colors: {
  custom: {
    50: '#b284d8',
    500: '#8d51c6',
    950: '#000000',
  },
}
SCSS
$custom: #8d51c6;
$custom-light: #b284d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51c6",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 198
  },
  "hsl": {
    "h": 270.769,
    "s": 50.649,
    "l": 54.706
  },
  "oklch": {
    "l": 0.55877,
    "c": 0.17826,
    "h": 305
  },
  "luminance": 0.15625
}

Semantic roles & 50–950 ramp

primary
#8D51C6
secondary
#B9D2A1
accent
#DA4E92
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8D51C6

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

Preview Lab → · Contrast checker → · Palette generator →

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