#8E2AB2#8E2AB2

#8E2AB2 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.1% C 0.209 H 315.2°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#8E2AB2
RGBrgb(142, 42, 178)
HSLhsl(284, 62%, 43%)
HSVhsv(284, 76%, 70%)
CMYKcmyk(20.2%, 76.4%, 0%, 30.2%)
CIE-LABlab(38.94, 60.69, -52.14)
CIE-LCHlch(38.94, 80.01, 319.33°)
OKLaboklab(50.07% 0.1479 -0.1471)
OKLCHoklch(50.07% 0.209 315.2)
XYZxyz(20.0179, 10.6218, 43.1066)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2AB2 #4EB22A
analogous
#4A2AB2 #8E2AB2 #B22A92
triadic
#8E2AB2 #B28E2A #2AB28E
tetradic
#8E2AB2 #B24A2A #4EB22A #2A92B2
square
#8E2AB2 #B24A2A #4EB22A #2A92B2
split-complementary
#8E2AB2 #92B22A #2AB24A
monochromatic
#3F134F #661E80 #8E2AB2 #AE46D3 #C477DF

Accessibility & contrast

On white

6.72
#8E2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8E2AB2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2AB2#FFFFFF#000000##FFFFFF
##8E2AB21.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#245EAF
Tritanopia (blue-blind)
#8B496D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8e2ab2;
/* rgb */ color: rgb(142, 42, 178);
/* oklch */ color: oklch(50.1% 0.209 315.2);
Tailwind
colors: {
  custom: {
    50: '#b36fca',
    500: '#8e2ab2',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ab2;
$custom-light: #b36fca;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ab2",
  "rgb": {
    "r": 142,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 284.118,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50068,
    "c": 0.2086,
    "h": 315.2
  },
  "luminance": 0.10621
}

Semantic roles & 50–950 ramp

primary
#8E2AB2
secondary
#88C771
accent
#E5436E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #8E2AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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