#8D51B3#8D51B3

#8D51B3 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.7% C 0.156 H 310.5°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#8D51B3
RGBrgb(141, 81, 179)
HSLhsl(277, 39%, 51%)
HSVhsv(277, 55%, 70%)
CMYKcmyk(21.2%, 54.7%, 0%, 29.8%)
CIE-LABlab(45.36, 42.79, -42.44)
CIE-LCHlch(45.36, 60.27, 315.24°)
OKLaboklab(54.7% 0.1016 -0.1189)
OKLCHoklch(54.7% 0.156 310.5)
XYZxyz(22.0621, 14.8027, 44.3341)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51B3 #77B351
analogous
#5C51B3 #8D51B3 #B351A8
triadic
#8D51B3 #B38D51 #51B38D
tetradic
#8D51B3 #B35C51 #77B351 #51A8B3
square
#8D51B3 #B35C51 #77B351 #51A8B3
split-complementary
#8D51B3 #A8B351 #51B35C
monochromatic
#4B2A60 #6C3C8A #8D51B3 #A97CC6 #C5A6D8

Accessibility & contrast

On white

5.30
#8D51B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#8D51B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51B3
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51B3#FFFFFF#000000##FFFFFF
##8D51B31.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3469B6
Deuteranopia (green-blind)
#496CB1
Tritanopia (blue-blind)
#88627A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8d51b3;
/* rgb */ color: rgb(141, 81, 179);
/* oklch */ color: oklch(54.7% 0.156 310.5);
Tailwind
colors: {
  custom: {
    50: '#b184ca',
    500: '#8d51b3',
    950: '#000000',
  },
}
SCSS
$custom: #8d51b3;
$custom-light: #b184ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51b3",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 179
  },
  "hsl": {
    "h": 276.735,
    "s": 39.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54699,
    "c": 0.15644,
    "h": 310.5
  },
  "luminance": 0.14802
}

Semantic roles & 50–950 ramp

primary
#8D51B3
secondary
#ABC69A
accent
#CF5987
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8D51B3

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

Preview Lab → · Contrast checker → · Palette generator →

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