#8E48B2#8E48B2

#8E48B2 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.5% C 0.170 H 312.5°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8E48B2
RGBrgb(142, 72, 178)
HSLhsl(280, 42%, 49%)
HSVhsv(280, 60%, 70%)
CMYKcmyk(20.2%, 59.6%, 0%, 30.2%)
CIE-LABlab(43.65, 47.55, -44.57)
CIE-LCHlch(43.65, 65.17, 316.86°)
OKLaboklab(53.46% 0.1148 -0.1251)
OKLCHoklch(53.46% 0.17 312.5)
XYZxyz(21.5072, 13.6004, 43.6030)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E48B2 #6CB248
analogous
#5948B2 #8E48B2 #B248A1
triadic
#8E48B2 #B28E48 #48B28E
tetradic
#8E48B2 #B25948 #6CB248 #48A1B2
square
#8E48B2 #B25948 #6CB248 #48A1B2
split-complementary
#8E48B2 #A1B248 #48B259
monochromatic
#48255B #6B3686 #8E48B2 #A971C6 #C49DD7

Accessibility & contrast

On white

5.65
#8E48B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8E48B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E48B2
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E48B2#FFFFFF#000000##FFFFFF
##8E48B21.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2563B5
Deuteranopia (green-blind)
#4169AF
Tritanopia (blue-blind)
#8A5B76
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8e48b2;
/* rgb */ color: rgb(142, 72, 178);
/* oklch */ color: oklch(53.5% 0.170 312.5);
Tailwind
colors: {
  custom: {
    50: '#b27fc9',
    500: '#8e48b2',
    950: '#000000',
  },
}
SCSS
$custom: #8e48b2;
$custom-light: #b27fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e48b2",
  "rgb": {
    "r": 142,
    "g": 72,
    "b": 178
  },
  "hsl": {
    "h": 279.623,
    "s": 42.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.53456,
    "c": 0.16976,
    "h": 312.5
  },
  "luminance": 0.136
}

Semantic roles & 50–950 ramp

primary
#8E48B2
secondary
#A3C492
accent
#D25680
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8E48B2

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

Preview Lab → · Contrast checker → · Palette generator →

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