#8E2CA8#8E2CA8

#8E2CA8 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.6% C 0.198 H 318.2°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#8E2CA8
RGBrgb(142, 44, 168)
HSLhsl(287, 58%, 42%)
HSVhsv(287, 74%, 66%)
CMYKcmyk(15.5%, 73.8%, 0%, 34.1%)
CIE-LABlab(38.52, 58.00, -46.86)
CIE-LCHlch(38.52, 74.56, 321.06°)
OKLaboklab(49.56% 0.1473 -0.1316)
OKLCHoklch(49.56% 0.198 318.2)
XYZxyz(19.1229, 10.3802, 38.0345)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2CA8 #46A82C
analogous
#502CA8 #8E2CA8 #A82C84
triadic
#8E2CA8 #A88E2C #2CA88E
tetradic
#8E2CA8 #A8502C #46A82C #2C84A8
square
#8E2CA8 #A8502C #46A82C #2C84A8
split-complementary
#8E2CA8 #84A82C #2CA850
monochromatic
#3C1347 #651F78 #8E2CA8 #B143CE #C574DB

Accessibility & contrast

On white

6.83
#8E2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8E2CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2CA8
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2CA8#FFFFFF#000000##FFFFFF
##8E2CA81.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#325EA5
Tritanopia (blue-blind)
#8D4568
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2ca8;
/* rgb */ color: rgb(142, 44, 168);
/* oklch */ color: oklch(49.6% 0.198 318.2);
Tailwind
colors: {
  custom: {
    50: '#b36fc2',
    500: '#8e2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ca8;
$custom-light: #b36fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ca8",
  "rgb": {
    "r": 142,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 287.419,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49557,
    "c": 0.19756,
    "h": 318.2
  },
  "luminance": 0.10379
}

Semantic roles & 50–950 ramp

primary
#8E2CA8
secondary
#7FC26E
accent
#E24667
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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