#8D51D5#8D51D5

#8D51D5 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.9% C 0.195 H 301.3°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#8D51D5
RGBrgb(141, 81, 213)
HSLhsl(267, 61%, 58%)
HSVhsv(267, 62%, 84%)
CMYKcmyk(33.8%, 62%, 0%, 16.5%)
CIE-LABlab(47.43, 50.89, -58.80)
CIE-LCHlch(47.43, 77.76, 310.87°)
OKLaboklab(56.88% 0.1017 -0.1669)
OKLCHoklch(56.88% 0.195 301.3)
XYZxyz(25.9343, 16.3516, 64.7277)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51D5 #99D551
analogous
#5157D5 #8D51D5 #CF51D5
triadic
#8D51D5 #D58D51 #51D58D
tetradic
#8D51D5 #D55157 #99D551 #51D5CF
square
#8D51D5 #D55157 #99D551 #51D5CF
split-complementary
#8D51D5 #D5CF51 #57D551
monochromatic
#51218A #6E2DBC #8D51D5 #AD82E1 #CEB4ED

Accessibility & contrast

On white

4.92
#8D51D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#8D51D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51D5
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51D5#FFFFFF#000000##FFFFFF
##8D51D51.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D9
Deuteranopia (green-blind)
#2370D2
Tritanopia (blue-blind)
#7E6D8C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8d51d5;
/* rgb */ color: rgb(141, 81, 213);
/* oklch */ color: oklch(56.9% 0.195 301.3);
Tailwind
colors: {
  custom: {
    50: '#b385e3',
    500: '#8d51d5',
    950: '#000000',
  },
}
SCSS
$custom: #8d51d5;
$custom-light: #b385e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51d5",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 267.273,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56876,
    "c": 0.19543,
    "h": 301.3
  },
  "luminance": 0.16352
}

Semantic roles & 50–950 ramp

primary
#8D51D5
secondary
#C3DBA6
accent
#E4449B
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #8D51D5

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

Preview Lab → · Contrast checker → · Palette generator →

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