#8E2AB1#8E2AB1

#8E2AB1 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.0% C 0.208 H 315.5°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#8E2AB1
RGBrgb(142, 42, 177)
HSLhsl(284, 62%, 43%)
HSVhsv(284, 76%, 69%)
CMYKcmyk(19.8%, 76.3%, 0%, 30.6%)
CIE-LABlab(38.87, 60.49, -51.66)
CIE-LCHlch(38.87, 79.55, 319.50°)
OKLaboklab(50% 0.148 -0.1457)
OKLCHoklch(50% 0.208 315.5)
XYZxyz(19.9178, 10.5818, 42.5797)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2AB1 #4DB12A
analogous
#4A2AB1 #8E2AB1 #B12A91
triadic
#8E2AB1 #B18E2A #2AB18E
tetradic
#8E2AB1 #B14A2A #4DB12A #2A91B1
square
#8E2AB1 #B14A2A #4DB12A #2A91B1
split-complementary
#8E2AB1 #91B12A #2AB14A
monochromatic
#3F134E #661E80 #8E2AB1 #AE45D3 #C477DF

Accessibility & contrast

On white

6.74
#8E2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8E2AB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2AB1
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2AB1#FFFFFF#000000##FFFFFF
##8E2AB11.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#265EAE
Tritanopia (blue-blind)
#8B486C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2ab1;
/* rgb */ color: rgb(142, 42, 177);
/* oklch */ color: oklch(50.0% 0.208 315.5);
Tailwind
colors: {
  custom: {
    50: '#b36fc9',
    500: '#8e2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ab1;
$custom-light: #b36fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ab1",
  "rgb": {
    "r": 142,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 284.444,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49998,
    "c": 0.20771,
    "h": 315.5
  },
  "luminance": 0.10581
}

Semantic roles & 50–950 ramp

primary
#8E2AB1
secondary
#87C670
accent
#E5436D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #8E2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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