#8D28B9#8D28B9

#8D28B9 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.3% C 0.216 H 312.8°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#8D28B9
RGBrgb(141, 40, 185)
HSLhsl(282, 64%, 44%)
HSVhsv(282, 78%, 73%)
CMYKcmyk(23.8%, 78.4%, 0%, 27.5%)
CIE-LABlab(39.04, 62.59, -56.11)
CIE-LCHlch(39.04, 84.06, 318.13°)
OKLaboklab(50.27% 0.1471 -0.1588)
OKLCHoklch(50.27% 0.216 312.8)
XYZxyz(20.4987, 10.6837, 46.8719)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D28B9 #54B928
analogous
#4528B9 #8D28B9 #B9289D
triadic
#8D28B9 #B98D28 #28B98D
tetradic
#8D28B9 #B94528 #54B928 #289DB9
square
#8D28B9 #B94528 #54B928 #289DB9
split-complementary
#8D28B9 #9DB928 #28B945
monochromatic
#401254 #671D87 #8D28B9 #AB47D7 #C279E2

Accessibility & contrast

On white

6.70
#8D28B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8D28B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D28B9
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D28B9#FFFFFF#000000##FFFFFF
##8D28B91.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#115EB6
Tritanopia (blue-blind)
#884B70
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8d28b9;
/* rgb */ color: rgb(141, 40, 185);
/* oklch */ color: oklch(50.3% 0.216 312.8);
Tailwind
colors: {
  custom: {
    50: '#b36ecf',
    500: '#8d28b9',
    950: '#000000',
  },
}
SCSS
$custom: #8d28b9;
$custom-light: #b36ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#8d28b9",
  "rgb": {
    "r": 141,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 281.793,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50269,
    "c": 0.21645,
    "h": 312.8
  },
  "luminance": 0.10683
}

Semantic roles & 50–950 ramp

primary
#8D28B9
secondary
#8DCA73
accent
#E74073
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8D28B9

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

Preview Lab → · Contrast checker → · Palette generator →

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