#8D51BF#8D51BF

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

Color values

HEX#8D51BF
RGBrgb(141, 81, 191)
HSLhsl(273, 46%, 53%)
HSVhsv(273, 58%, 75%)
CMYKcmyk(26.2%, 57.6%, 0%, 25.1%)
CIE-LABlab(46.06, 45.58, -48.34)
CIE-LCHlch(46.06, 66.44, 313.32°)
OKLaboklab(55.43% 0.1021 -0.1362)
OKLCHoklch(55.43% 0.17 306.9)
XYZxyz(23.3290, 15.3094, 51.0061)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51BF #83BF51
analogous
#5651BF #8D51BF #BF51BA
triadic
#8D51BF #BF8D51 #51BF8D
tetradic
#8D51BF #BF5651 #83BF51 #51BABF
square
#8D51BF #BF5651 #83BF51 #51BABF
split-complementary
#8D51BF #BABF51 #51BF56
monochromatic
#4E286D #6E399A #8D51BF #AA7ECF #C8AAE0

Accessibility & contrast

On white

5.17
#8D51BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8D51BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51BF
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51BF#FFFFFF#000000##FFFFFF
##8D51BF1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#276BC3
Deuteranopia (green-blind)
#3F6EBC
Tritanopia (blue-blind)
#856680
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8d51bf;
/* rgb */ color: rgb(141, 81, 191);
/* oklch */ color: oklch(55.4% 0.170 306.9);
Tailwind
colors: {
  custom: {
    50: '#b184d3',
    500: '#8d51bf',
    950: '#000000',
  },
}
SCSS
$custom: #8d51bf;
$custom-light: #b184d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51bf",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 272.727,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55431,
    "c": 0.17023,
    "h": 306.9
  },
  "luminance": 0.15309
}

Semantic roles & 50–950 ramp

primary
#8D51BF
secondary
#B4CE9E
accent
#D6528E
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8D51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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