#8D51CF#8D51CF

#8D51CF is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.5% C 0.189 H 302.7°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8D51CF
RGBrgb(141, 81, 207)
HSLhsl(269, 57%, 56%)
HSVhsv(269, 61%, 81%)
CMYKcmyk(31.9%, 60.9%, 0%, 18.8%)
CIE-LABlab(47.04, 49.42, -55.99)
CIE-LCHlch(47.04, 74.68, 311.43°)
OKLaboklab(56.47% 0.1019 -0.1587)
OKLCHoklch(56.47% 0.189 302.7)
XYZxyz(25.1868, 16.0526, 60.7909)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51CF #93CF51
analogous
#5154CF #8D51CF #CC51CF
triadic
#8D51CF #CF8D51 #51CF8D
tetradic
#8D51CF #CF5154 #93CF51 #51CFCC
square
#8D51CF #CF5154 #93CF51 #51CFCC
split-complementary
#8D51CF #CFCC51 #54CF51
monochromatic
#512482 #6E31B2 #8D51CF #AC81DC #CCB1E9

Accessibility & contrast

On white

4.99
#8D51CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#8D51CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51CF
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51CF#FFFFFF#000000##FFFFFF
##8D51CF1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#2D6FCC
Tritanopia (blue-blind)
#806B88
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8d51cf;
/* rgb */ color: rgb(141, 81, 207);
/* oklch */ color: oklch(56.5% 0.189 302.7);
Tailwind
colors: {
  custom: {
    50: '#b285de',
    500: '#8d51cf',
    950: '#000000',
  },
}
SCSS
$custom: #8d51cf;
$custom-light: #b285de;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51cf",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 268.571,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.56469,
    "c": 0.18858,
    "h": 302.7
  },
  "luminance": 0.16053
}

Semantic roles & 50–950 ramp

primary
#8D51CF
secondary
#BFD8A4
accent
#E04898
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8D51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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