#8D28AB#8D28AB

#8D28AB is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.3% C 0.204 H 317.1°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#8D28AB
RGBrgb(141, 40, 171)
HSLhsl(286, 62%, 41%)
HSVhsv(286, 77%, 67%)
CMYKcmyk(17.5%, 76.6%, 0%, 32.9%)
CIE-LABlab(38.06, 59.81, -49.40)
CIE-LCHlch(38.06, 77.57, 320.45°)
OKLaboklab(49.27% 0.1494 -0.1391)
OKLCHoklch(49.27% 0.204 317.1)
XYZxyz(19.0929, 10.1214, 39.4681)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D28AB #46AB28
analogous
#4C28AB #8D28AB #AB2888
triadic
#8D28AB #AB8D28 #28AB8D
tetradic
#8D28AB #AB4C28 #46AB28 #2888AB
square
#8D28AB #AB4C28 #46AB28 #2888AB
split-complementary
#8D28AB #88AB28 #28AB4C
monochromatic
#3B1148 #641C79 #8D28AB #B03ED2 #C470DE

Accessibility & contrast

On white

6.94
#8D28AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8D28AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D28AB
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D28AB#FFFFFF#000000##FFFFFF
##8D28AB1.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8d28ab;
/* rgb */ color: rgb(141, 40, 171);
/* oklch */ color: oklch(49.3% 0.204 317.1);
Tailwind
colors: {
  custom: {
    50: '#b26dc5',
    500: '#8d28ab',
    950: '#000000',
  },
}
SCSS
$custom: #8d28ab;
$custom-light: #b26dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d28ab",
  "rgb": {
    "r": 141,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 286.26,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49265,
    "c": 0.20413,
    "h": 317.1
  },
  "luminance": 0.10121
}

Semantic roles & 50–950 ramp

primary
#8D28AB
secondary
#7FC46A
accent
#E54368
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8D28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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