#8D51DB#8D51DB

#8D51DB is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.3% C 0.202 H 300.0°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8D51DB
RGBrgb(141, 81, 219)
HSLhsl(266, 66%, 59%)
HSVhsv(266, 63%, 86%)
CMYKcmyk(35.6%, 63%, 0%, 14.1%)
CIE-LABlab(47.83, 52.37, -61.58)
CIE-LCHlch(47.83, 80.84, 310.38°)
OKLaboklab(57.29% 0.1013 -0.1751)
OKLCHoklch(57.29% 0.202 300)
XYZxyz(26.7100, 16.6618, 68.8130)
Luminance0.1666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51DB #9FDB51
analogous
#515ADB #8D51DB #D251DB
triadic
#8D51DB #DB8D51 #51DB8D
tetradic
#8D51DB #DB515A #9FDB51 #51DBD2
square
#8D51DB #DB515A #9FDB51 #51DBD2
split-complementary
#8D51DB #DBD251 #5ADB51
monochromatic
#511E93 #6D29C6 #8D51DB #AE84E5 #CFB6F0

Accessibility & contrast

On white

4.85
#8D51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#8D51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51DB
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51DB#FFFFFF#000000##FFFFFF
##8D51DB1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#1470D8
Tritanopia (blue-blind)
#7C6F8F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8d51db;
/* rgb */ color: rgb(141, 81, 219);
/* oklch */ color: oklch(57.3% 0.202 300.0);
Tailwind
colors: {
  custom: {
    50: '#b385e7',
    500: '#8d51db',
    950: '#000000',
  },
}
SCSS
$custom: #8d51db;
$custom-light: #b385e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51db",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 266.087,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.57291,
    "c": 0.20225,
    "h": 300
  },
  "luminance": 0.16662
}

Semantic roles & 50–950 ramp

primary
#8D51DB
secondary
#C7DFA9
accent
#E93F9F
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8D51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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