#8E48CD#8E48CD

#8E48CD is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.2% C 0.199 H 304.9°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#8E48CD
RGBrgb(142, 72, 205)
HSLhsl(272, 57%, 54%)
HSVhsv(272, 65%, 80%)
CMYKcmyk(30.7%, 64.9%, 0%, 19.6%)
CIE-LABlab(45.35, 53.73, -57.56)
CIE-LCHlch(45.35, 78.74, 313.03°)
OKLaboklab(55.23% 0.1138 -0.1632)
OKLCHoklch(55.23% 0.199 304.9)
XYZxyz(24.4897, 14.7934, 59.3110)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E48CD #87CD48
analogous
#4C48CD #8E48CD #CD48CA
triadic
#8E48CD #CD8E48 #48CD8E
tetradic
#8E48CD #CD4C48 #87CD48 #48CACD
square
#8E48CD #CD4C48 #87CD48 #48CACD
split-complementary
#8E48CD #CACD48 #48CD4C
monochromatic
#502179 #6F2EA9 #8E48CD #AC78DA #C9A8E7

Accessibility & contrast

On white

5.30
#8E48CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#8E48CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E48CD
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E48CD#FFFFFF#000000##FFFFFF
##8E48CD1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#226BCA
Tritanopia (blue-blind)
#836584
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8e48cd;
/* rgb */ color: rgb(142, 72, 205);
/* oklch */ color: oklch(55.2% 0.199 304.9);
Tailwind
colors: {
  custom: {
    50: '#b37fdd',
    500: '#8e48cd',
    950: '#000000',
  },
}
SCSS
$custom: #8e48cd;
$custom-light: #b37fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e48cd",
  "rgb": {
    "r": 142,
    "g": 72,
    "b": 205
  },
  "hsl": {
    "h": 271.579,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55228,
    "c": 0.19898,
    "h": 304.9
  },
  "luminance": 0.14793
}

Semantic roles & 50–950 ramp

primary
#8E48CD
secondary
#B7D59C
accent
#E04790
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8E48CD

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

Preview Lab → · Contrast checker → · Palette generator →

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