#8E2BA8#8E2BA8

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

Color values

HEX#8E2BA8
RGBrgb(142, 43, 168)
HSLhsl(288, 59%, 41%)
HSVhsv(288, 74%, 66%)
CMYKcmyk(15.5%, 74.4%, 0%, 34.1%)
CIE-LABlab(38.39, 58.37, -47.07)
CIE-LCHlch(38.39, 74.98, 321.12°)
OKLaboklab(49.47% 0.1483 -0.1322)
OKLCHoklch(49.47% 0.199 318.3)
XYZxyz(19.0861, 10.3066, 38.0222)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2BA8 #45A82B
analogous
#502BA8 #8E2BA8 #A82B84
triadic
#8E2BA8 #A88E2B #2BA88E
tetradic
#8E2BA8 #A8502B #45A82B #2B84A8
square
#8E2BA8 #A8502B #45A82B #2B84A8
split-complementary
#8E2BA8 #84A82B #2BA850
monochromatic
#3C1247 #651F77 #8E2BA8 #B142CF #C572DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E2BA8#FFFFFF#000000##FFFFFF
##8E2BA81.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)
#0054AB
Deuteranopia (green-blind)
#315DA5
Tritanopia (blue-blind)
#8D4567
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e2ba8;
/* rgb */ color: rgb(142, 43, 168);
/* oklch */ color: oklch(49.5% 0.199 318.3);
Tailwind
colors: {
  custom: {
    50: '#b36fc2',
    500: '#8e2ba8',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ba8;
$custom-light: #b36fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ba8",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 287.52,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49465,
    "c": 0.19867,
    "h": 318.3
  },
  "luminance": 0.10306
}

Semantic roles & 50–950 ramp

primary
#8E2BA8
secondary
#7EC26C
accent
#E24566
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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