#8D51B4#8D51B4

#8D51B4 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.8% C 0.158 H 310.2°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#8D51B4
RGBrgb(141, 81, 180)
HSLhsl(276, 40%, 51%)
HSVhsv(276, 55%, 71%)
CMYKcmyk(21.7%, 55%, 0%, 29.4%)
CIE-LABlab(45.42, 43.02, -42.94)
CIE-LCHlch(45.42, 60.78, 315.05°)
OKLaboklab(54.76% 0.1017 -0.1204)
OKLCHoklch(54.76% 0.158 310.2)
XYZxyz(22.1636, 14.8433, 44.8686)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51B4 #78B451
analogous
#5B51B4 #8D51B4 #B451A9
triadic
#8D51B4 #B48D51 #51B48D
tetradic
#8D51B4 #B45B51 #78B451 #51A9B4
square
#8D51B4 #B45B51 #78B451 #51A9B4
split-complementary
#8D51B4 #A9B451 #51B45B
monochromatic
#4B2A61 #6C3C8C #8D51B4 #A97CC6 #C5A7D9

Accessibility & contrast

On white

5.29
#8D51B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8D51B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51B4
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51B4#FFFFFF#000000##FFFFFF
##8D51B41.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3369B7
Deuteranopia (green-blind)
#486DB2
Tritanopia (blue-blind)
#88627B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8d51b4;
/* rgb */ color: rgb(141, 81, 180);
/* oklch */ color: oklch(54.8% 0.158 310.2);
Tailwind
colors: {
  custom: {
    50: '#b184cb',
    500: '#8d51b4',
    950: '#000000',
  },
}
SCSS
$custom: #8d51b4;
$custom-light: #b184cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51b4",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 180
  },
  "hsl": {
    "h": 276.364,
    "s": 39.759,
    "l": 51.176
  },
  "oklch": {
    "l": 0.54758,
    "c": 0.15759,
    "h": 310.2
  },
  "luminance": 0.14843
}

Semantic roles & 50–950 ramp

primary
#8D51B4
secondary
#ACC69B
accent
#D05887
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8D51B4

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

Preview Lab → · Contrast checker → · Palette generator →

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