#8D51DF#8D51DF

#8D51DF is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.6% C 0.207 H 299.2°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8D51DF
RGBrgb(141, 81, 223)
HSLhsl(265, 69%, 60%)
HSVhsv(265, 64%, 87%)
CMYKcmyk(36.8%, 63.7%, 0%, 12.5%)
CIE-LABlab(48.10, 53.36, -63.41)
CIE-LCHlch(48.10, 82.88, 310.08°)
OKLaboklab(57.57% 0.1009 -0.1805)
OKLCHoklch(57.57% 0.207 299.2)
XYZxyz(27.2429, 16.8750, 71.6196)
Luminance0.1688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51DF #A3DF51
analogous
#515CDF #8D51DF #D451DF
triadic
#8D51DF #DF8D51 #51DF8D
tetradic
#8D51DF #DF515C #A3DF51 #51DFD4
square
#8D51DF #DF515C #A3DF51 #51DFD4
split-complementary
#8D51DF #DFD451 #5CDF51
monochromatic
#511C99 #6C26CD #8D51DF #AF85E9 #D1B8F2

Accessibility & contrast

On white

4.80
#8D51DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#8D51DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51DF
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51DF#FFFFFF#000000##FFFFFF
##8D51DF1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E3
Deuteranopia (green-blind)
#0171DC
Tritanopia (blue-blind)
#7A7191
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8d51df;
/* rgb */ color: rgb(141, 81, 223);
/* oklch */ color: oklch(57.6% 0.207 299.2);
Tailwind
colors: {
  custom: {
    50: '#b485ea',
    500: '#8d51df',
    950: '#000000',
  },
}
SCSS
$custom: #8d51df;
$custom-light: #b485ea;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51df",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 265.352,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57573,
    "c": 0.20678,
    "h": 299.2
  },
  "luminance": 0.16875
}

Semantic roles & 50–950 ramp

primary
#8D51DF
secondary
#CAE1AA
accent
#EC3CA2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8D51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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