#8E51E4#8E51E4

#8E51E4 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.0% C 0.213 H 298.6°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8E51E4
RGBrgb(142, 81, 228)
HSLhsl(265, 73%, 61%)
HSVhsv(265, 64%, 89%)
CMYKcmyk(37.7%, 64.5%, 0%, 10.6%)
CIE-LABlab(48.56, 54.82, -65.51)
CIE-LCHlch(48.56, 85.42, 309.92°)
OKLaboklab(58.04% 0.1018 -0.1866)
OKLCHoklch(58.04% 0.213 298.6)
XYZxyz(28.0978, 17.2367, 75.2304)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E51E4 #A7E451
analogous
#515DE4 #8E51E4 #D751E4
triadic
#8E51E4 #E48E51 #51E48E
tetradic
#8E51E4 #E4515D #A7E451 #51E4D7
square
#8E51E4 #E4515D #A7E451 #51E4D7
split-complementary
#8E51E4 #E4D751 #5DE451
monochromatic
#5219A2 #6C21D7 #8E51E4 #B086EC #D3BBF4

Accessibility & contrast

On white

4.72
#8E51E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#8E51E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E51E4
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E51E4#FFFFFF#000000##FFFFFF
##8E51E41.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E9
Deuteranopia (green-blind)
#0072E1
Tritanopia (blue-blind)
#7A7393
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8e51e4;
/* rgb */ color: rgb(142, 81, 228);
/* oklch */ color: oklch(58.0% 0.213 298.6);
Tailwind
colors: {
  custom: {
    50: '#b585ed',
    500: '#8e51e4',
    950: '#000000',
  },
}
SCSS
$custom: #8e51e4;
$custom-light: #b585ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8e51e4",
  "rgb": {
    "r": 142,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 264.898,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58035,
    "c": 0.21255,
    "h": 298.6
  },
  "luminance": 0.17237
}

Semantic roles & 50–950 ramp

primary
#8E51E4
secondary
#CDE4AC
accent
#D51083
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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