#8D51DC#8D51DC

#8D51DC is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.4% C 0.203 H 299.8°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8D51DC
RGBrgb(141, 81, 220)
HSLhsl(266, 67%, 59%)
HSVhsv(266, 63%, 86%)
CMYKcmyk(35.9%, 63.2%, 0%, 13.7%)
CIE-LABlab(47.90, 52.62, -62.04)
CIE-LCHlch(47.90, 81.35, 310.30°)
OKLaboklab(57.36% 0.1012 -0.1764)
OKLCHoklch(57.36% 0.203 299.8)
XYZxyz(26.8420, 16.7146, 69.5084)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51DC #A0DC51
analogous
#515BDC #8D51DC #D251DC
triadic
#8D51DC #DC8D51 #51DC8D
tetradic
#8D51DC #DC515B #A0DC51 #51DCD2
square
#8D51DC #DC515B #A0DC51 #51DCD2
split-complementary
#8D51DC #DCD251 #5BDC51
monochromatic
#511E95 #6D28C8 #8D51DC #AE84E6 #D0B7F0

Accessibility & contrast

On white

4.84
#8D51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#8D51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51DC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51DC#FFFFFF#000000##FFFFFF
##8D51DC1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#1171D9
Tritanopia (blue-blind)
#7C708F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8d51dc;
/* rgb */ color: rgb(141, 81, 220);
/* oklch */ color: oklch(57.4% 0.203 299.8);
Tailwind
colors: {
  custom: {
    50: '#b385e8',
    500: '#8d51dc',
    950: '#000000',
  },
}
SCSS
$custom: #8d51dc;
$custom-light: #b385e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51dc",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 265.899,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57361,
    "c": 0.20339,
    "h": 299.8
  },
  "luminance": 0.16715
}

Semantic roles & 50–950 ramp

primary
#8D51DC
secondary
#C8E0A9
accent
#E93EA0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8D51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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