#8E54E1#8E54E1

#8E54E1 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.2% C 0.205 H 298.8°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8E54E1
RGBrgb(142, 84, 225)
HSLhsl(265, 70%, 61%)
HSVhsv(265, 63%, 88%)
CMYKcmyk(36.9%, 62.7%, 0%, 11.8%)
CIE-LABlab(48.92, 52.53, -63.22)
CIE-LCHlch(48.92, 82.20, 309.72°)
OKLaboklab(58.23% 0.0988 -0.1799)
OKLCHoklch(58.23% 0.205 298.8)
XYZxyz(27.9129, 17.5273, 73.1321)
Luminance0.1753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E54E1 #A7E154
analogous
#5460E1 #8E54E1 #D454E1
triadic
#8E54E1 #E18E54 #54E18E
tetradic
#8E54E1 #E15460 #A7E154 #54E1D4
square
#8E54E1 #E15460 #A7E154 #54E1D4
split-complementary
#8E54E1 #E1D454 #60E154
monochromatic
#521C9F #6C25D3 #8E54E1 #B088EA #D3BCF3

Accessibility & contrast

On white

4.66
#8E54E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#8E54E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8E54E1
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E54E1#FFFFFF#000000##FFFFFF
##8E54E11.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E5
Deuteranopia (green-blind)
#0D73DE
Tritanopia (blue-blind)
#7B7393
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8e54e1;
/* rgb */ color: rgb(142, 84, 225);
/* oklch */ color: oklch(58.2% 0.205 298.8);
Tailwind
colors: {
  custom: {
    50: '#b487eb',
    500: '#8e54e1',
    950: '#000000',
  },
}
SCSS
$custom: #8e54e1;
$custom-light: #b487eb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e54e1",
  "rgb": {
    "r": 142,
    "g": 84,
    "b": 225
  },
  "hsl": {
    "h": 264.681,
    "s": 70.149,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58231,
    "c": 0.20523,
    "h": 298.8
  },
  "luminance": 0.17528
}

Semantic roles & 50–950 ramp

primary
#8E54E1
secondary
#CDE3AE
accent
#D21384
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E54E1

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

Preview Lab → · Contrast checker → · Palette generator →

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