#8D51BE#8D51BE

#8D51BE is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.4% C 0.169 H 307.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8D51BE
RGBrgb(141, 81, 190)
HSLhsl(273, 46%, 53%)
HSVhsv(273, 57%, 75%)
CMYKcmyk(25.8%, 57.4%, 0%, 25.5%)
CIE-LABlab(46.00, 45.34, -47.85)
CIE-LCHlch(46.00, 65.92, 313.46°)
OKLaboklab(55.37% 0.1021 -0.1348)
OKLCHoklch(55.37% 0.169 307.1)
XYZxyz(23.2193, 15.2655, 50.4286)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51BE #82BE51
analogous
#5651BE #8D51BE #BE51B8
triadic
#8D51BE #BE8D51 #51BE8D
tetradic
#8D51BE #BE5651 #82BE51 #51B8BE
square
#8D51BE #BE5651 #82BE51 #51B8BE
split-complementary
#8D51BE #B8BE51 #51BE56
monochromatic
#4E286C #6E3999 #8D51BE #AA7ECF #C7AADF

Accessibility & contrast

On white

5.18
#8D51BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#8D51BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51BE
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51BE#FFFFFF#000000##FFFFFF
##8D51BE1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286BC2
Deuteranopia (green-blind)
#406DBB
Tritanopia (blue-blind)
#856680
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8d51be;
/* rgb */ color: rgb(141, 81, 190);
/* oklch */ color: oklch(55.4% 0.169 307.1);
Tailwind
colors: {
  custom: {
    50: '#b184d2',
    500: '#8d51be',
    950: '#000000',
  },
}
SCSS
$custom: #8d51be;
$custom-light: #b184d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51be",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 273.028,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55368,
    "c": 0.16907,
    "h": 307.1
  },
  "luminance": 0.15265
}

Semantic roles & 50–950 ramp

primary
#8D51BE
secondary
#B3CD9E
accent
#D5538D
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8D51BE

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

Preview Lab → · Contrast checker → · Palette generator →

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