#8E51DF#8E51DF

#8E51DF is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.7% C 0.207 H 299.6°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8E51DF
RGBrgb(142, 81, 223)
HSLhsl(266, 69%, 60%)
HSVhsv(266, 64%, 87%)
CMYKcmyk(36.3%, 63.7%, 0%, 12.5%)
CIE-LABlab(48.21, 53.57, -63.23)
CIE-LCHlch(48.21, 82.87, 310.27°)
OKLaboklab(57.68% 0.1023 -0.1799)
OKLCHoklch(57.68% 0.207 299.6)
XYZxyz(27.4138, 16.9631, 71.6277)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E51DF #A2DF51
analogous
#515BDF #8E51DF #D551DF
triadic
#8E51DF #DF8E51 #51DF8E
tetradic
#8E51DF #DF515B #A2DF51 #51DFD5
square
#8E51DF #DF515B #A2DF51 #51DFD5
split-complementary
#8E51DF #DFD551 #5BDF51
monochromatic
#521C99 #6E26CD #8E51DF #B085E9 #D1B8F2

Accessibility & contrast

On white

4.78
#8E51DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#8E51DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E51DF
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E51DF#FFFFFF#000000##FFFFFF
##8E51DF1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E3
Deuteranopia (green-blind)
#0671DC
Tritanopia (blue-blind)
#7C7191
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8e51df;
/* rgb */ color: rgb(142, 81, 223);
/* oklch */ color: oklch(57.7% 0.207 299.6);
Tailwind
colors: {
  custom: {
    50: '#b485ea',
    500: '#8e51df',
    950: '#000000',
  },
}
SCSS
$custom: #8e51df;
$custom-light: #b485ea;
$custom-dark: #000000;
JSON
{
  "hex": "#8e51df",
  "rgb": {
    "r": 142,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 265.775,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57679,
    "c": 0.20692,
    "h": 299.6
  },
  "luminance": 0.16963
}

Semantic roles & 50–950 ramp

primary
#8E51DF
secondary
#CAE1AA
accent
#EC3CA0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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