#8E2BAD#8E2BAD

#8E2BAD is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.8% C 0.203 H 316.7°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#8E2BAD
RGBrgb(142, 43, 173)
HSLhsl(286, 60%, 42%)
HSVhsv(286, 75%, 68%)
CMYKcmyk(17.9%, 75.1%, 0%, 32.2%)
CIE-LABlab(38.72, 59.34, -49.52)
CIE-LCHlch(38.72, 77.29, 320.16°)
OKLaboklab(49.81% 0.1477 -0.1394)
OKLCHoklch(49.81% 0.203 316.7)
XYZxyz(19.5609, 10.4965, 40.5227)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2BAD #4AAD2B
analogous
#4D2BAD #8E2BAD #AD2B8B
triadic
#8E2BAD #AD8E2B #2BAD8E
tetradic
#8E2BAD #AD4D2B #4AAD2B #2B8BAD
square
#8E2BAD #AD4D2B #4AAD2B #2B8BAD
split-complementary
#8E2BAD #8BAD2B #2BAD4D
monochromatic
#3E134B #661F7C #8E2BAD #AF45D1 #C476DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E2BAD#FFFFFF#000000##FFFFFF
##8E2BAD1.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)
#0055B1
Deuteranopia (green-blind)
#2C5EAA
Tritanopia (blue-blind)
#8C476A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2bad;
/* rgb */ color: rgb(142, 43, 173);
/* oklch */ color: oklch(49.8% 0.203 316.7);
Tailwind
colors: {
  custom: {
    50: '#b36fc6',
    500: '#8e2bad',
    950: '#000000',
  },
}
SCSS
$custom: #8e2bad;
$custom-light: #b36fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2bad",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 285.692,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49806,
    "c": 0.20311,
    "h": 316.7
  },
  "luminance": 0.10496
}

Semantic roles & 50–950 ramp

primary
#8E2BAD
secondary
#84C46F
accent
#E3446A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E2BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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