#8D51CB#8D51CB

#8D51CB is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.2% C 0.184 H 303.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8D51CB
RGBrgb(141, 81, 203)
HSLhsl(270, 54%, 56%)
HSVhsv(270, 60%, 80%)
CMYKcmyk(30.5%, 60.1%, 0%, 20.4%)
CIE-LABlab(46.79, 48.45, -54.10)
CIE-LCHlch(46.79, 72.62, 311.84°)
OKLaboklab(56.2% 0.1021 -0.1531)
OKLCHoklch(56.2% 0.184 303.7)
XYZxyz(24.7040, 15.8594, 58.2480)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51CB #8FCB51
analogous
#5152CB #8D51CB #CA51CB
triadic
#8D51CB #CB8D51 #51CB8D
tetradic
#8D51CB #CB5152 #8FCB51 #51CBCA
square
#8D51CB #CB5152 #8FCB51 #51CBCA
split-complementary
#8D51CB #CBCA51 #52CB51
monochromatic
#50257C #6E33AC #8D51CB #AC80D9 #CBAFE7

Accessibility & contrast

On white

5.03
#8D51CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#8D51CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51CB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51CB#FFFFFF#000000##FFFFFF
##8D51CB1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6ECF
Deuteranopia (green-blind)
#336FC8
Tritanopia (blue-blind)
#816A86
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8d51cb;
/* rgb */ color: rgb(141, 81, 203);
/* oklch */ color: oklch(56.2% 0.184 303.7);
Tailwind
colors: {
  custom: {
    50: '#b285db',
    500: '#8d51cb',
    950: '#000000',
  },
}
SCSS
$custom: #8d51cb;
$custom-light: #b285db;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51cb",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 269.508,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56203,
    "c": 0.18401,
    "h": 303.7
  },
  "luminance": 0.15859
}

Semantic roles & 50–950 ramp

primary
#8D51CB
secondary
#BCD5A3
accent
#DD4A95
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8D51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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