#8E28A2#8E28A2

#8E28A2 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.197 H 320.5°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#8E28A2
RGBrgb(142, 40, 162)
HSLhsl(290, 60%, 40%)
HSVhsv(290, 75%, 64%)
CMYKcmyk(12.3%, 75.3%, 0%, 36.5%)
CIE-LABlab(37.62, 58.29, -44.70)
CIE-LCHlch(37.62, 73.46, 322.52°)
OKLaboklab(48.8% 0.1517 -0.1253)
OKLCHoklch(48.8% 0.197 320.5)
XYZxyz(18.4349, 9.8780, 35.1110)
Luminance0.0988 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E28A2 #3CA228
analogous
#5128A2 #8E28A2 #A22879
triadic
#8E28A2 #A28E28 #28A28E
tetradic
#8E28A2 #A25128 #3CA228 #2879A2
square
#8E28A2 #A25128 #3CA228 #2879A2
split-complementary
#8E28A2 #79A228 #28A251
monochromatic
#381040 #631C71 #8E28A2 #B639CE #C86ADA

Accessibility & contrast

On white

7.06
#8E28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8E28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E28A2
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E28A2#FFFFFF#000000##FFFFFF
##8E28A21.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#355C9F
Tritanopia (blue-blind)
#8F4063
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8e28a2;
/* rgb */ color: rgb(142, 40, 162);
/* oklch */ color: oklch(48.8% 0.197 320.5);
Tailwind
colors: {
  custom: {
    50: '#b36dbe',
    500: '#8e28a2',
    950: '#000000',
  },
}
SCSS
$custom: #8e28a2;
$custom-light: #b36dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8e28a2",
  "rgb": {
    "r": 142,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 290.164,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48798,
    "c": 0.19672,
    "h": 320.5
  },
  "luminance": 0.09877
}

Semantic roles & 50–950 ramp

primary
#8E28A2
secondary
#74C165
accent
#E4445E
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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