#8E2DA4#8E2DA4

#8E2DA4 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.193 H 319.5°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#8E2DA4
RGBrgb(142, 45, 164)
HSLhsl(289, 57%, 41%)
HSVhsv(289, 73%, 64%)
CMYKcmyk(13.4%, 72.6%, 0%, 35.7%)
CIE-LABlab(38.39, 56.85, -44.67)
CIE-LCHlch(38.39, 72.30, 321.84°)
OKLaboklab(49.39% 0.1467 -0.1252)
OKLCHoklch(49.39% 0.193 319.5)
XYZxyz(18.7937, 10.3088, 36.1146)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2DA4 #43A42D
analogous
#522DA4 #8E2DA4 #A42D7E
triadic
#8E2DA4 #A48E2D #2DA48E
tetradic
#8E2DA4 #A4522D #43A42D #2D7EA4
square
#8E2DA4 #A4522D #43A42D #2D7EA4
split-complementary
#8E2DA4 #7EA42D #2DA452
monochromatic
#3B1344 #642074 #8E2DA4 #B243CB #C673D9

Accessibility & contrast

On white

6.86
#8E2DA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8E2DA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2DA4
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2DA4#FFFFFF#000000##FFFFFF
##8E2DA41.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A7
Deuteranopia (green-blind)
#365EA1
Tritanopia (blue-blind)
#8E4466
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e2da4;
/* rgb */ color: rgb(142, 45, 164);
/* oklch */ color: oklch(49.4% 0.193 319.5);
Tailwind
colors: {
  custom: {
    50: '#b36fc0',
    500: '#8e2da4',
    950: '#000000',
  },
}
SCSS
$custom: #8e2da4;
$custom-light: #b36fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2da4",
  "rgb": {
    "r": 142,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 288.908,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49386,
    "c": 0.19285,
    "h": 319.5
  },
  "luminance": 0.10308
}

Semantic roles & 50–950 ramp

primary
#8E2DA4
secondary
#7CC06D
accent
#E04864
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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