#8D51CD#8D51CD

#8D51CD is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.3% C 0.186 H 303.2°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8D51CD
RGBrgb(141, 81, 205)
HSLhsl(269, 55%, 56%)
HSVhsv(269, 60%, 80%)
CMYKcmyk(31.2%, 60.5%, 0%, 19.6%)
CIE-LABlab(46.92, 48.93, -55.05)
CIE-LCHlch(46.92, 73.65, 311.63°)
OKLaboklab(56.34% 0.102 -0.1559)
OKLCHoklch(56.34% 0.186 303.2)
XYZxyz(24.9439, 15.9554, 59.5114)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51CD #91CD51
analogous
#5153CD #8D51CD #CB51CD
triadic
#8D51CD #CD8D51 #51CD8D
tetradic
#8D51CD #CD5153 #91CD51 #51CDCB
square
#8D51CD #CD5153 #91CD51 #51CDCB
split-complementary
#8D51CD #CDCB51 #53CD51
monochromatic
#50257F #6E32AF #8D51CD #AC81DB #CBB0E8

Accessibility & contrast

On white

5.01
#8D51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8D51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51CD
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51CD#FFFFFF#000000##FFFFFF
##8D51CD1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076ED1
Deuteranopia (green-blind)
#306FCA
Tritanopia (blue-blind)
#816B87
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8d51cd;
/* rgb */ color: rgb(141, 81, 205);
/* oklch */ color: oklch(56.3% 0.186 303.2);
Tailwind
colors: {
  custom: {
    50: '#b285dd',
    500: '#8d51cd',
    950: '#000000',
  },
}
SCSS
$custom: #8d51cd;
$custom-light: #b285dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51cd",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 269.032,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56336,
    "c": 0.18629,
    "h": 303.2
  },
  "luminance": 0.15955
}

Semantic roles & 50–950 ramp

primary
#8D51CD
secondary
#BED7A3
accent
#DF4996
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8D51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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