#8E2DA9#8E2DA9

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

Color values

HEX#8E2DA9
RGBrgb(142, 45, 169)
HSLhsl(287, 58%, 42%)
HSVhsv(287, 73%, 66%)
CMYKcmyk(16%, 73.4%, 0%, 33.7%)
CIE-LABlab(38.71, 57.82, -47.14)
CIE-LCHlch(38.71, 74.60, 320.81°)
OKLaboklab(49.72% 0.1462 -0.1325)
OKLCHoklch(49.72% 0.197 317.8)
XYZxyz(19.2541, 10.4930, 38.5396)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2DA9 #48A92D
analogous
#502DA9 #8E2DA9 #A92D86
triadic
#8E2DA9 #A98E2D #2DA98E
tetradic
#8E2DA9 #A9502D #48A92D #2D86A9
square
#8E2DA9 #A9502D #48A92D #2D86A9
split-complementary
#8E2DA9 #86A92D #2DA950
monochromatic
#3D1348 #652079 #8E2DA9 #B046CE #C576DA

Accessibility & contrast

On white

6.78
#8E2DA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8E2DA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2DA9
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2DA9#FFFFFF#000000##FFFFFF
##8E2DA91.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AC
Deuteranopia (green-blind)
#325EA6
Tritanopia (blue-blind)
#8D4669
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2da9;
/* rgb */ color: rgb(142, 45, 169);
/* oklch */ color: oklch(49.7% 0.197 317.8);
Tailwind
colors: {
  custom: {
    50: '#b370c3',
    500: '#8e2da9',
    950: '#000000',
  },
}
SCSS
$custom: #8e2da9;
$custom-light: #b370c3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2da9",
  "rgb": {
    "r": 142,
    "g": 45,
    "b": 169
  },
  "hsl": {
    "h": 286.935,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49718,
    "c": 0.19731,
    "h": 317.8
  },
  "luminance": 0.10492
}

Semantic roles & 50–950 ramp

primary
#8E2DA9
secondary
#82C26F
accent
#E14768
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E2DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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