#8E51E6#8E51E6

#8E51E6 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.2% C 0.215 H 298.2°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8E51E6
RGBrgb(142, 81, 230)
HSLhsl(265, 75%, 61%)
HSVhsv(265, 65%, 90%)
CMYKcmyk(38.3%, 64.8%, 0%, 9.8%)
CIE-LABlab(48.70, 55.32, -66.41)
CIE-LCHlch(48.70, 86.43, 309.79°)
OKLaboklab(58.18% 0.1016 -0.1892)
OKLCHoklch(58.18% 0.215 298.2)
XYZxyz(28.3771, 17.3484, 76.7011)
Luminance0.1735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E51E6 #A9E651
analogous
#515EE6 #8E51E6 #D851E6
triadic
#8E51E6 #E68E51 #51E68E
tetradic
#8E51E6 #E6515E #A9E651 #51E6D8
square
#8E51E6 #E6515E #A9E651 #51E6D8
split-complementary
#8E51E6 #E6D851 #5EE651
monochromatic
#5218A5 #6C1FDA #8E51E6 #B187EE #D4BCF5

Accessibility & contrast

On white

4.70
#8E51E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#8E51E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E51E6
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E51E6#FFFFFF#000000##FFFFFF
##8E51E61.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EB
Deuteranopia (green-blind)
#0072E3
Tritanopia (blue-blind)
#797395
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8e51e6;
/* rgb */ color: rgb(142, 81, 230);
/* oklch */ color: oklch(58.2% 0.215 298.2);
Tailwind
colors: {
  custom: {
    50: '#b585ef',
    500: '#8e51e6',
    950: '#000000',
  },
}
SCSS
$custom: #8e51e6;
$custom-light: #b585ef;
$custom-dark: #000000;
JSON
{
  "hex": "#8e51e6",
  "rgb": {
    "r": 142,
    "g": 81,
    "b": 230
  },
  "hsl": {
    "h": 264.564,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58179,
    "c": 0.21479,
    "h": 298.2
  },
  "luminance": 0.17349
}

Semantic roles & 50–950 ramp

primary
#8E51E6
secondary
#CEE5AD
accent
#D70E85
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8E51E6

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

Preview Lab → · Contrast checker → · Palette generator →

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