#8E28B5#8E28B5

#8E28B5 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.1% C 0.213 H 314.4°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#8E28B5
RGBrgb(142, 40, 181)
HSLhsl(283, 64%, 43%)
HSVhsv(283, 78%, 71%)
CMYKcmyk(21.5%, 77.9%, 0%, 29%)
CIE-LABlab(38.91, 61.97, -53.96)
CIE-LCHlch(38.91, 82.17, 318.95°)
OKLaboklab(50.11% 0.1491 -0.1524)
OKLCHoklch(50.11% 0.213 314.4)
XYZxyz(20.2532, 10.6053, 44.6873)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E28B5 #4FB528
analogous
#4728B5 #8E28B5 #B52895
triadic
#8E28B5 #B58E28 #28B58E
tetradic
#8E28B5 #B54728 #4FB528 #2895B5
square
#8E28B5 #B54728 #4FB528 #2895B5
split-complementary
#8E28B5 #95B528 #28B547
monochromatic
#3F1251 #671D83 #8E28B5 #AE44D6 #C377E1

Accessibility & contrast

On white

6.73
#8E28B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8E28B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E28B5
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E28B5#FFFFFF#000000##FFFFFF
##8E28B51.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#1D5EB2
Tritanopia (blue-blind)
#8A496E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8e28b5;
/* rgb */ color: rgb(142, 40, 181);
/* oklch */ color: oklch(50.1% 0.213 314.4);
Tailwind
colors: {
  custom: {
    50: '#b46ecc',
    500: '#8e28b5',
    950: '#000000',
  },
}
SCSS
$custom: #8e28b5;
$custom-light: #b46ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#8e28b5",
  "rgb": {
    "r": 142,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 283.404,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.50115,
    "c": 0.21326,
    "h": 314.4
  },
  "luminance": 0.10605
}

Semantic roles & 50–950 ramp

primary
#8E28B5
secondary
#89C870
accent
#E7416F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #8E28B5

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

Preview Lab → · Contrast checker → · Palette generator →

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