#8D51BB#8D51BB

#8D51BB is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.2% C 0.166 H 308.0°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8D51BB
RGBrgb(141, 81, 187)
HSLhsl(274, 44%, 53%)
HSVhsv(274, 57%, 73%)
CMYKcmyk(24.6%, 56.7%, 0%, 26.7%)
CIE-LABlab(45.82, 44.64, -46.39)
CIE-LCHlch(45.82, 64.38, 313.90°)
OKLaboklab(55.18% 0.102 -0.1305)
OKLCHoklch(55.18% 0.166 308)
XYZxyz(22.8948, 15.1357, 48.7195)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51BB #7FBB51
analogous
#5851BB #8D51BB #BB51B4
triadic
#8D51BB #BB8D51 #51BB8D
tetradic
#8D51BB #BB5851 #7FBB51 #51B4BB
square
#8D51BB #BB5851 #7FBB51 #51B4BB
split-complementary
#8D51BB #B4BB51 #51BB58
monochromatic
#4D2969 #6D3A95 #8D51BB #AA7DCC #C7A9DD

Accessibility & contrast

On white

5.21
#8D51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8D51BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51BB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51BB#FFFFFF#000000##FFFFFF
##8D51BB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6ABE
Deuteranopia (green-blind)
#436DB8
Tritanopia (blue-blind)
#86657E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8d51bb;
/* rgb */ color: rgb(141, 81, 187);
/* oklch */ color: oklch(55.2% 0.166 308.0);
Tailwind
colors: {
  custom: {
    50: '#b184d0',
    500: '#8d51bb',
    950: '#000000',
  },
}
SCSS
$custom: #8d51bb;
$custom-light: #b184d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51bb",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 273.962,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55182,
    "c": 0.16562,
    "h": 308
  },
  "luminance": 0.15135
}

Semantic roles & 50–950 ramp

primary
#8D51BB
secondary
#B1CB9D
accent
#D4548B
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8D51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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