#8E51DC#8E51DC

#8E51DC is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.5% C 0.204 H 300.2°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8E51DC
RGBrgb(142, 81, 220)
HSLhsl(266, 67%, 59%)
HSVhsv(266, 63%, 86%)
CMYKcmyk(35.5%, 63.2%, 0%, 13.7%)
CIE-LABlab(48.01, 52.83, -61.85)
CIE-LCHlch(48.01, 81.34, 310.50°)
OKLaboklab(57.47% 0.1025 -0.1758)
OKLCHoklch(57.47% 0.204 300.2)
XYZxyz(27.0129, 16.8027, 69.5164)
Luminance0.1680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E51DC #9FDC51
analogous
#515ADC #8E51DC #D451DC
triadic
#8E51DC #DC8E51 #51DC8E
tetradic
#8E51DC #DC515A #9FDC51 #51DCD4
square
#8E51DC #DC515A #9FDC51 #51DCD4
split-complementary
#8E51DC #DCD451 #5ADC51
monochromatic
#521E95 #6E28C8 #8E51DC #AF84E6 #D0B7F0

Accessibility & contrast

On white

4.82
#8E51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#8E51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E51DC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E51DC#FFFFFF#000000##FFFFFF
##8E51DC1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#1471D9
Tritanopia (blue-blind)
#7D708F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8e51dc;
/* rgb */ color: rgb(142, 81, 220);
/* oklch */ color: oklch(57.5% 0.204 300.2);
Tailwind
colors: {
  custom: {
    50: '#b485e8',
    500: '#8e51dc',
    950: '#000000',
  },
}
SCSS
$custom: #8e51dc;
$custom-light: #b485e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8e51dc",
  "rgb": {
    "r": 142,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 266.331,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57468,
    "c": 0.20355,
    "h": 300.2
  },
  "luminance": 0.16803
}

Semantic roles & 50–950 ramp

primary
#8E51DC
secondary
#C8E0A9
accent
#E93E9E
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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