#8E51D7#8E51D7

#8E51D7 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 57.1% C 0.198 H 301.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8E51D7
RGBrgb(142, 81, 215)
HSLhsl(267, 63%, 58%)
HSVhsv(267, 62%, 84%)
CMYKcmyk(34%, 62.3%, 0%, 15.7%)
CIE-LABlab(47.68, 51.60, -59.54)
CIE-LCHlch(47.68, 78.79, 310.91°)
OKLaboklab(57.12% 0.1029 -0.1691)
OKLCHoklch(57.12% 0.198 301.3)
XYZxyz(26.3606, 16.5418, 66.0809)
Luminance0.1654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E51D7 #9AD751
analogous
#5157D7 #8E51D7 #D151D7
triadic
#8E51D7 #D78E51 #51D78E
tetradic
#8E51D7 #D75157 #9AD751 #51D7D1
square
#8E51D7 #D75157 #9AD751 #51D7D1
split-complementary
#8E51D7 #D7D151 #57D751
monochromatic
#52208D #6F2CBF #8E51D7 #AE83E2 #CFB5EE

Accessibility & contrast

On white

4.87
#8E51D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#8E51D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E51D7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E51D7#FFFFFF#000000##FFFFFF
##8E51D71.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#2170D4
Tritanopia (blue-blind)
#7F6E8D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8e51d7;
/* rgb */ color: rgb(142, 81, 215);
/* oklch */ color: oklch(57.1% 0.198 301.3);
Tailwind
colors: {
  custom: {
    50: '#b485e4',
    500: '#8e51d7',
    950: '#000000',
  },
}
SCSS
$custom: #8e51d7;
$custom-light: #b485e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e51d7",
  "rgb": {
    "r": 142,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 267.313,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57121,
    "c": 0.19789,
    "h": 301.3
  },
  "luminance": 0.16542
}

Semantic roles & 50–950 ramp

primary
#8E51D7
secondary
#C4DDA7
accent
#E6429B
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E51D7

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

Preview Lab → · Contrast checker → · Palette generator →

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