#8E2DA8#8E2DA8

#8E2DA8 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.7% C 0.196 H 318.2°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#8E2DA8
RGBrgb(142, 45, 168)
HSLhsl(287, 58%, 42%)
HSVhsv(287, 73%, 66%)
CMYKcmyk(15.5%, 73.2%, 0%, 34.1%)
CIE-LABlab(38.65, 57.62, -46.65)
CIE-LCHlch(38.65, 74.14, 321.01°)
OKLaboklab(49.65% 0.1463 -0.131)
OKLCHoklch(49.65% 0.196 318.2)
XYZxyz(19.1606, 10.4556, 38.0470)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2DA8 #47A82D
analogous
#512DA8 #8E2DA8 #A82D85
triadic
#8E2DA8 #A88E2D #2DA88E
tetradic
#8E2DA8 #A8512D #47A82D #2D85A8
square
#8E2DA8 #A8512D #47A82D #2D85A8
split-complementary
#8E2DA8 #85A82D #2DA851
monochromatic
#3C1347 #652078 #8E2DA8 #B045CD #C575DA

Accessibility & contrast

On white

6.79
#8E2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8E2DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2DA8
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2DA8#FFFFFF#000000##FFFFFF
##8E2DA81.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#335EA5
Tritanopia (blue-blind)
#8D4668
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2da8;
/* rgb */ color: rgb(142, 45, 168);
/* oklch */ color: oklch(49.7% 0.196 318.2);
Tailwind
colors: {
  custom: {
    50: '#b370c2',
    500: '#8e2da8',
    950: '#000000',
  },
}
SCSS
$custom: #8e2da8;
$custom-light: #b370c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2da8",
  "rgb": {
    "r": 142,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 287.317,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49651,
    "c": 0.19642,
    "h": 318.2
  },
  "luminance": 0.10455
}

Semantic roles & 50–950 ramp

primary
#8E2DA8
secondary
#80C26F
accent
#E14767
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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