#8E51D5#8E51D5

#8E51D5 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 57.0% C 0.196 H 301.8°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8E51D5
RGBrgb(142, 81, 213)
HSLhsl(268, 61%, 58%)
HSVhsv(268, 62%, 84%)
CMYKcmyk(33.3%, 62%, 0%, 16.5%)
CIE-LABlab(47.55, 51.11, -58.61)
CIE-LCHlch(47.55, 77.76, 311.09°)
OKLaboklab(56.98% 0.103 -0.1663)
OKLCHoklch(56.98% 0.196 301.8)
XYZxyz(26.1052, 16.4397, 64.7357)
Luminance0.1644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E51D5 #98D551
analogous
#5156D5 #8E51D5 #D051D5
triadic
#8E51D5 #D58E51 #51D58E
tetradic
#8E51D5 #D55156 #98D551 #51D5D0
square
#8E51D5 #D55156 #98D551 #51D5D0
split-complementary
#8E51D5 #D5D051 #56D551
monochromatic
#52218A #6F2DBC #8E51D5 #AE82E1 #CEB4ED

Accessibility & contrast

On white

4.90
#8E51D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#8E51D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E51D5
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E51D5#FFFFFF#000000##FFFFFF
##8E51D51.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D9
Deuteranopia (green-blind)
#2570D2
Tritanopia (blue-blind)
#806D8C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8e51d5;
/* rgb */ color: rgb(142, 81, 213);
/* oklch */ color: oklch(57.0% 0.196 301.8);
Tailwind
colors: {
  custom: {
    50: '#b485e3',
    500: '#8e51d5',
    950: '#000000',
  },
}
SCSS
$custom: #8e51d5;
$custom-light: #b485e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e51d5",
  "rgb": {
    "r": 142,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 267.727,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56984,
    "c": 0.19561,
    "h": 301.8
  },
  "luminance": 0.1644
}

Semantic roles & 50–950 ramp

primary
#8E51D5
secondary
#C3DBA6
accent
#E4449A
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #8E51D5

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

Preview Lab → · Contrast checker → · Palette generator →

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