#8E2BA6#8E2BA6

#8E2BA6 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.197 H 318.9°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#8E2BA6
RGBrgb(142, 43, 166)
HSLhsl(288, 59%, 41%)
HSVhsv(288, 74%, 65%)
CMYKcmyk(14.5%, 74.1%, 0%, 34.9%)
CIE-LABlab(38.26, 57.98, -46.08)
CIE-LCHlch(38.26, 74.06, 321.52°)
OKLaboklab(49.33% 0.1485 -0.1293)
OKLCHoklch(49.33% 0.197 318.9)
XYZxyz(18.9012, 10.2326, 37.0485)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2BA6 #43A62B
analogous
#502BA6 #8E2BA6 #A62B80
triadic
#8E2BA6 #A68E2B #2BA68E
tetradic
#8E2BA6 #A6502B #43A62B #2B80A6
square
#8E2BA6 #A6502B #43A62B #2B80A6
split-complementary
#8E2BA6 #80A62B #2BA650
monochromatic
#3B1245 #641E75 #8E2BA6 #B241CE #C671DA

Accessibility & contrast

On white

6.89
#8E2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8E2BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2BA6
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2BA6#FFFFFF#000000##FFFFFF
##8E2BA61.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#335DA3
Tritanopia (blue-blind)
#8E4466
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e2ba6;
/* rgb */ color: rgb(142, 43, 166);
/* oklch */ color: oklch(49.3% 0.197 318.9);
Tailwind
colors: {
  custom: {
    50: '#b36fc1',
    500: '#8e2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ba6;
$custom-light: #b36fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ba6",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 288.293,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49331,
    "c": 0.19691,
    "h": 318.9
  },
  "luminance": 0.10232
}

Semantic roles & 50–950 ramp

primary
#8E2BA6
secondary
#7CC16B
accent
#E24664
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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