#8E54EB#8E54EB

#8E54EB is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 58.9% C 0.217 H 296.9°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8E54EB
RGBrgb(142, 84, 235)
HSLhsl(263, 79%, 63%)
HSVhsv(263, 64%, 92%)
CMYKcmyk(39.6%, 64.3%, 0%, 7.8%)
CIE-LABlab(49.60, 55.05, -67.76)
CIE-LCHlch(49.60, 87.30, 309.09°)
OKLaboklab(58.94% 0.0979 -0.1932)
OKLCHoklch(58.94% 0.217 296.9)
XYZxyz(29.3172, 18.0891, 80.5281)
Luminance0.1809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E54EB #B1EB54
analogous
#5466EB #8E54EB #D954EB
triadic
#8E54EB #EB8E54 #54EB8E
tetradic
#8E54EB #EB5466 #B1EB54 #54EBD9
square
#8E54EB #EB5466 #B1EB54 #54EBD9
split-complementary
#8E54EB #EBD954 #66EB54
monochromatic
#5015B0 #6A1DE5 #8E54EB #B28BF1 #D6C2F8

Accessibility & contrast

On white

4.55
#8E54EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#8E54EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E54EB
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E54EB#FFFFFF#000000##000000
##8E54EB1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F0
Deuteranopia (green-blind)
#0074E8
Tritanopia (blue-blind)
#777798
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8e54eb;
/* rgb */ color: rgb(142, 84, 235);
/* oklch */ color: oklch(58.9% 0.217 296.9);
Tailwind
colors: {
  custom: {
    50: '#b587f2',
    500: '#8e54eb',
    950: '#000000',
  },
}
SCSS
$custom: #8e54eb;
$custom-light: #b587f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e54eb",
  "rgb": {
    "r": 142,
    "g": 84,
    "b": 235
  },
  "hsl": {
    "h": 263.046,
    "s": 79.058,
    "l": 62.549
  },
  "oklch": {
    "l": 0.58944,
    "c": 0.21661,
    "h": 296.9
  },
  "luminance": 0.1809
}

Semantic roles & 50–950 ramp

primary
#8E54EB
secondary
#D4E9B2
accent
#DB0A8B
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8E54EB

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

Preview Lab → · Contrast checker → · Palette generator →

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