#8E48BA#8E48BA

#8E48BA is a mid, vivid violet. Relative luminance 0.139; OKLCH L 54.0% C 0.178 H 310.0°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#8E48BA
RGBrgb(142, 72, 186)
HSLhsl(277, 45%, 51%)
HSVhsv(277, 61%, 73%)
CMYKcmyk(23.7%, 61.3%, 0%, 27.1%)
CIE-LABlab(44.13, 49.34, -48.49)
CIE-LCHlch(44.13, 69.18, 315.50°)
OKLaboklab(53.96% 0.1148 -0.1366)
OKLCHoklch(53.96% 0.178 310)
XYZxyz(22.3339, 13.9311, 47.9573)
Luminance0.1393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E48BA #74BA48
analogous
#5548BA #8E48BA #BA48AD
triadic
#8E48BA #BA8E48 #48BA8E
tetradic
#8E48BA #BA5548 #74BA48 #48ADBA
square
#8E48BA #BA5548 #74BA48 #48ADBA
split-complementary
#8E48BA #ADBA48 #48BA55
monochromatic
#4B2562 #6D368F #8E48BA #A974CB #C5A1DC

Accessibility & contrast

On white

5.55
#8E48BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8E48BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E48BA
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E48BA#FFFFFF#000000##FFFFFF
##8E48BA1.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1765BE
Deuteranopia (green-blind)
#3B69B7
Tritanopia (blue-blind)
#885E7A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8e48ba;
/* rgb */ color: rgb(142, 72, 186);
/* oklch */ color: oklch(54.0% 0.178 310.0);
Tailwind
colors: {
  custom: {
    50: '#b27fcf',
    500: '#8e48ba',
    950: '#000000',
  },
}
SCSS
$custom: #8e48ba;
$custom-light: #b27fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e48ba",
  "rgb": {
    "r": 142,
    "g": 72,
    "b": 186
  },
  "hsl": {
    "h": 276.842,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5396,
    "c": 0.17841,
    "h": 310
  },
  "luminance": 0.13931
}

Semantic roles & 50–950 ramp

primary
#8E48BA
secondary
#A9C896
accent
#D55385
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8E48BA

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

Preview Lab → · Contrast checker → · Palette generator →

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