#8E54DB#8E54DB

#8E54DB is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.8% C 0.198 H 300.0°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8E54DB
RGBrgb(142, 84, 219)
HSLhsl(266, 65%, 59%)
HSVhsv(266, 62%, 86%)
CMYKcmyk(35.2%, 61.6%, 0%, 14.1%)
CIE-LABlab(48.52, 51.03, -60.46)
CIE-LCHlch(48.52, 79.12, 310.16°)
OKLaboklab(57.81% 0.0992 -0.1718)
OKLCHoklch(57.81% 0.198 300)
XYZxyz(27.1087, 17.2057, 68.8969)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E54DB #A1DB54
analogous
#545EDB #8E54DB #D254DB
triadic
#8E54DB #DB8E54 #54DB8E
tetradic
#8E54DB #DB545E #A1DB54 #54DBD2
square
#8E54DB #DB545E #A1DB54 #54DBD2
split-complementary
#8E54DB #DBD254 #5EDB54
monochromatic
#521F95 #6E2AC8 #8E54DB #AF87E6 #D1B9F0

Accessibility & contrast

On white

4.73
#8E54DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#8E54DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E54DB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E54DB#FFFFFF#000000##FFFFFF
##8E54DB1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#2072D8
Tritanopia (blue-blind)
#7D7190
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8e54db;
/* rgb */ color: rgb(142, 84, 219);
/* oklch */ color: oklch(57.8% 0.198 300.0);
Tailwind
colors: {
  custom: {
    50: '#b487e7',
    500: '#8e54db',
    950: '#000000',
  },
}
SCSS
$custom: #8e54db;
$custom-light: #b487e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e54db",
  "rgb": {
    "r": 142,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 265.778,
    "s": 65.217,
    "l": 59.412
  },
  "oklch": {
    "l": 0.57814,
    "c": 0.19835,
    "h": 300
  },
  "luminance": 0.17206
}

Semantic roles & 50–950 ramp

primary
#8E54DB
secondary
#C9E0AB
accent
#E840A0
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E54DB

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

Preview Lab → · Contrast checker → · Palette generator →

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