#8D51BD#8D51BD

#8D51BD is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.3% C 0.168 H 307.4°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8D51BD
RGBrgb(141, 81, 189)
HSLhsl(273, 45%, 53%)
HSVhsv(273, 57%, 74%)
CMYKcmyk(25.4%, 57.1%, 0%, 25.9%)
CIE-LABlab(45.94, 45.11, -47.36)
CIE-LCHlch(45.94, 65.41, 313.60°)
OKLaboklab(55.31% 0.1021 -0.1333)
OKLCHoklch(55.31% 0.168 307.4)
XYZxyz(23.1104, 15.2220, 49.8549)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51BD #81BD51
analogous
#5751BD #8D51BD #BD51B7
triadic
#8D51BD #BD8D51 #51BD8D
tetradic
#8D51BD #BD5751 #81BD51 #51B7BD
square
#8D51BD #BD5751 #81BD51 #51B7BD
split-complementary
#8D51BD #B7BD51 #51BD57
monochromatic
#4D296B #6E3997 #8D51BD #AA7DCE #C7AADF

Accessibility & contrast

On white

5.19
#8D51BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#8D51BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51BD
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51BD#FFFFFF#000000##FFFFFF
##8D51BD1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6BC1
Deuteranopia (green-blind)
#416DBA
Tritanopia (blue-blind)
#86657F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8d51bd;
/* rgb */ color: rgb(141, 81, 189);
/* oklch */ color: oklch(55.3% 0.168 307.4);
Tailwind
colors: {
  custom: {
    50: '#b184d1',
    500: '#8d51bd',
    950: '#000000',
  },
}
SCSS
$custom: #8d51bd;
$custom-light: #b184d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51bd",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 273.333,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55306,
    "c": 0.16792,
    "h": 307.4
  },
  "luminance": 0.15222
}

Semantic roles & 50–950 ramp

primary
#8D51BD
secondary
#B2CC9E
accent
#D5538D
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8D51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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