#8D51CA#8D51CA

#8D51CA is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.1% C 0.183 H 303.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8D51CA
RGBrgb(141, 81, 202)
HSLhsl(270, 53%, 55%)
HSVhsv(270, 60%, 79%)
CMYKcmyk(30.2%, 59.9%, 0%, 20.8%)
CIE-LABlab(46.73, 48.20, -53.62)
CIE-LCHlch(46.73, 72.10, 311.95°)
OKLaboklab(56.14% 0.1021 -0.1517)
OKLCHoklch(56.14% 0.183 303.9)
XYZxyz(24.5852, 15.8119, 57.6225)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51CA #8ECA51
analogous
#5151CA #8D51CA #C951CA
triadic
#8D51CA #CA8D51 #51CA8D
tetradic
#8D51CA #CA5151 #8ECA51 #51CAC9
square
#8D51CA #CA5151 #8ECA51 #51CAC9
split-complementary
#8D51CA #CAC951 #51CA51
monochromatic
#50257B #6E34AA #8D51CA #AC80D8 #CAAFE7

Accessibility & contrast

On white

5.05
#8D51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8D51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51CA
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51CA#FFFFFF#000000##FFFFFF
##8D51CA1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126DCE
Deuteranopia (green-blind)
#346FC7
Tritanopia (blue-blind)
#826A86
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8d51ca;
/* rgb */ color: rgb(141, 81, 202);
/* oklch */ color: oklch(56.1% 0.183 303.9);
Tailwind
colors: {
  custom: {
    50: '#b285db',
    500: '#8d51ca',
    950: '#000000',
  },
}
SCSS
$custom: #8d51ca;
$custom-light: #b285db;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51ca",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 269.752,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56137,
    "c": 0.18285,
    "h": 303.9
  },
  "luminance": 0.15812
}

Semantic roles & 50–950 ramp

primary
#8D51CA
secondary
#BCD5A2
accent
#DD4B95
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8D51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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