#8E2FAD#8E2FAD

#8E2FAD is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.2% C 0.199 H 316.4°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#8E2FAD
RGBrgb(142, 47, 173)
HSLhsl(285, 57%, 43%)
HSVhsv(285, 73%, 68%)
CMYKcmyk(17.9%, 72.8%, 0%, 32.2%)
CIE-LABlab(39.24, 57.85, -48.67)
CIE-LCHlch(39.24, 75.60, 319.92°)
OKLaboklab(50.18% 0.1439 -0.137)
OKLCHoklch(50.18% 0.199 316.4)
XYZxyz(19.7135, 10.8017, 40.5736)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2FAD #4EAD2F
analogous
#4F2FAD #8E2FAD #AD2F8D
triadic
#8E2FAD #AD8E2F #2FAD8E
tetradic
#8E2FAD #AD4F2F #4EAD2F #2F8DAD
square
#8E2FAD #AD4F2F #4EAD2F #2F8DAD
split-complementary
#8E2FAD #8DAD2F #2FAD4F
monochromatic
#3F154D #66227D #8E2FAD #AE4BCE #C47BDB

Accessibility & contrast

On white

6.65
#8E2FAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8E2FAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2FAD
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2FAD#FFFFFF#000000##FFFFFF
##8E2FAD1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B1
Deuteranopia (green-blind)
#2F5FAA
Tritanopia (blue-blind)
#8C496B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8e2fad;
/* rgb */ color: rgb(142, 47, 173);
/* oklch */ color: oklch(50.2% 0.199 316.4);
Tailwind
colors: {
  custom: {
    50: '#b371c6',
    500: '#8e2fad',
    950: '#000000',
  },
}
SCSS
$custom: #8e2fad;
$custom-light: #b371c6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2fad",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 173
  },
  "hsl": {
    "h": 285.238,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.5018,
    "c": 0.19863,
    "h": 316.4
  },
  "luminance": 0.10801
}

Semantic roles & 50–950 ramp

primary
#8E2FAD
secondary
#88C474
accent
#E1476D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E2FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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