#8E28AB#8E28AB

#8E28AB is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.4% C 0.205 H 317.5°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#8E28AB
RGBrgb(142, 40, 171)
HSLhsl(287, 62%, 41%)
HSVhsv(287, 77%, 67%)
CMYKcmyk(17%, 76.6%, 0%, 32.9%)
CIE-LABlab(38.22, 60.01, -49.14)
CIE-LCHlch(38.22, 77.56, 320.69°)
OKLaboklab(49.41% 0.1507 -0.1383)
OKLCHoklch(49.41% 0.205 317.5)
XYZxyz(19.2637, 10.2095, 39.4761)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E28AB #45AB28
analogous
#4D28AB #8E28AB #AB2887
triadic
#8E28AB #AB8E28 #28AB8E
tetradic
#8E28AB #AB4D28 #45AB28 #2887AB
square
#8E28AB #AB4D28 #45AB28 #2887AB
split-complementary
#8E28AB #87AB28 #28AB4D
monochromatic
#3C1148 #651C79 #8E28AB #B13ED2 #C570DE

Accessibility & contrast

On white

6.90
#8E28AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8E28AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E28AB
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E28AB#FFFFFF#000000##FFFFFF
##8E28AB1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#2C5DA8
Tritanopia (blue-blind)
#8D4468
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e28ab;
/* rgb */ color: rgb(142, 40, 171);
/* oklch */ color: oklch(49.4% 0.205 317.5);
Tailwind
colors: {
  custom: {
    50: '#b36ec5',
    500: '#8e28ab',
    950: '#000000',
  },
}
SCSS
$custom: #8e28ab;
$custom-light: #b36ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e28ab",
  "rgb": {
    "r": 142,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 286.718,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49407,
    "c": 0.20451,
    "h": 317.5
  },
  "luminance": 0.10209
}

Semantic roles & 50–950 ramp

primary
#8E28AB
secondary
#7EC46A
accent
#E54367
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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