#8E28B7#8E28B7

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

Color values

HEX#8E28B7
RGBrgb(142, 40, 183)
HSLhsl(283, 64%, 44%)
HSVhsv(283, 78%, 72%)
CMYKcmyk(22.4%, 78.1%, 0%, 28.2%)
CIE-LABlab(39.05, 62.37, -54.91)
CIE-LCHlch(39.05, 83.10, 318.64°)
OKLaboklab(50.26% 0.1488 -0.1552)
OKLCHoklch(50.26% 0.215 313.8)
XYZxyz(20.4599, 10.6880, 45.7758)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E28B7 #51B728
analogous
#4628B7 #8E28B7 #B72898
triadic
#8E28B7 #B78E28 #28B78E
tetradic
#8E28B7 #B74628 #51B728 #2898B7
square
#8E28B7 #B74628 #51B728 #2898B7
split-complementary
#8E28B7 #98B728 #28B746
monochromatic
#401253 #671D85 #8E28B7 #AD46D6 #C378E1

Accessibility & contrast

On white

6.69
#8E28B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8E28B7
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E28B7#FFFFFF#000000##FFFFFF
##8E28B71.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#195EB4
Tritanopia (blue-blind)
#8A4A6F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8e28b7;
/* rgb */ color: rgb(142, 40, 183);
/* oklch */ color: oklch(50.3% 0.215 313.8);
Tailwind
colors: {
  custom: {
    50: '#b46ecd',
    500: '#8e28b7',
    950: '#000000',
  },
}
SCSS
$custom: #8e28b7;
$custom-light: #b46ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e28b7",
  "rgb": {
    "r": 142,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 282.797,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.5026,
    "c": 0.21502,
    "h": 313.8
  },
  "luminance": 0.10687
}

Semantic roles & 50–950 ramp

primary
#8E28B7
secondary
#8BC972
accent
#E74170
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8E28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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