#8D51D7#8D51D7

#8D51D7 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 57.0% C 0.198 H 300.9°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8D51D7
RGBrgb(141, 81, 215)
HSLhsl(267, 63%, 58%)
HSVhsv(267, 62%, 84%)
CMYKcmyk(34.4%, 62.3%, 0%, 15.7%)
CIE-LABlab(47.56, 51.38, -59.73)
CIE-LCHlch(47.56, 78.79, 310.70°)
OKLaboklab(57.01% 0.1015 -0.1696)
OKLCHoklch(57.01% 0.198 300.9)
XYZxyz(26.1897, 16.4537, 66.0729)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51D7 #9BD751
analogous
#5158D7 #8D51D7 #D051D7
triadic
#8D51D7 #D78D51 #51D78D
tetradic
#8D51D7 #D75158 #9BD751 #51D7D0
square
#8D51D7 #D75158 #9BD751 #51D7D0
split-complementary
#8D51D7 #D7D051 #58D751
monochromatic
#51208D #6E2CBF #8D51D7 #AE83E2 #CEB5EE

Accessibility & contrast

On white

4.89
#8D51D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#8D51D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51D7
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51D7#FFFFFF#000000##FFFFFF
##8D51D71.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#1F70D4
Tritanopia (blue-blind)
#7D6E8D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8d51d7;
/* rgb */ color: rgb(141, 81, 215);
/* oklch */ color: oklch(57.0% 0.198 300.9);
Tailwind
colors: {
  custom: {
    50: '#b385e4',
    500: '#8d51d7',
    950: '#000000',
  },
}
SCSS
$custom: #8d51d7;
$custom-light: #b385e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51d7",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 266.866,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57013,
    "c": 0.19771,
    "h": 300.9
  },
  "luminance": 0.16454
}

Semantic roles & 50–950 ramp

primary
#8D51D7
secondary
#C5DDA7
accent
#E6429C
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8D51D7

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

Preview Lab → · Contrast checker → · Palette generator →

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