#8E28B9#8E28B9

#8E28B9 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.4% C 0.217 H 313.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8E28B9
RGBrgb(142, 40, 185)
HSLhsl(282, 64%, 44%)
HSVhsv(282, 78%, 73%)
CMYKcmyk(23.2%, 78.4%, 0%, 27.5%)
CIE-LABlab(39.19, 62.77, -55.86)
CIE-LCHlch(39.19, 84.03, 318.34°)
OKLaboklab(50.41% 0.1484 -0.158)
OKLCHoklch(50.41% 0.217 313.2)
XYZxyz(20.6695, 10.7718, 46.8799)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E28B9 #53B928
analogous
#4628B9 #8E28B9 #B9289C
triadic
#8E28B9 #B98E28 #28B98E
tetradic
#8E28B9 #B94628 #53B928 #289CB9
square
#8E28B9 #B94628 #53B928 #289CB9
split-complementary
#8E28B9 #9CB928 #28B946
monochromatic
#411254 #671D87 #8E28B9 #AC47D7 #C379E2

Accessibility & contrast

On white

6.66
#8E28B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8E28B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E28B9
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E28B9#FFFFFF#000000##FFFFFF
##8E28B91.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e28b9;
/* rgb */ color: rgb(142, 40, 185);
/* oklch */ color: oklch(50.4% 0.217 313.2);
Tailwind
colors: {
  custom: {
    50: '#b46ecf',
    500: '#8e28b9',
    950: '#000000',
  },
}
SCSS
$custom: #8e28b9;
$custom-light: #b46ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e28b9",
  "rgb": {
    "r": 142,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 282.207,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50406,
    "c": 0.21677,
    "h": 313.2
  },
  "luminance": 0.10771
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8E28B9

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

Preview Lab → · Contrast checker → · Palette generator →

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