#8E2CAA#8E2CAA

#8E2CAA is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.7% C 0.199 H 317.6°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#8E2CAA
RGBrgb(142, 44, 170)
HSLhsl(287, 59%, 42%)
HSVhsv(287, 74%, 67%)
CMYKcmyk(16.5%, 74.1%, 0%, 33.3%)
CIE-LABlab(38.65, 58.39, -47.84)
CIE-LCHlch(38.65, 75.49, 320.67°)
OKLaboklab(49.69% 0.1471 -0.1345)
OKLCHoklch(49.69% 0.199 317.6)
XYZxyz(19.3107, 10.4553, 39.0233)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2CAA #48AA2C
analogous
#4F2CAA #8E2CAA #AA2C87
triadic
#8E2CAA #AA8E2C #2CAA8E
tetradic
#8E2CAA #AA4F2C #48AA2C #2C87AA
square
#8E2CAA #AA4F2C #48AA2C #2C87AA
split-complementary
#8E2CAA #87AA2C #2CAA4F
monochromatic
#3D1349 #651F79 #8E2CAA #B044CF #C575DB

Accessibility & contrast

On white

6.79
#8E2CAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8E2CAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2CAA
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2CAA#FFFFFF#000000##FFFFFF
##8E2CAA1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#305EA7
Tritanopia (blue-blind)
#8D4669
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2caa;
/* rgb */ color: rgb(142, 44, 170);
/* oklch */ color: oklch(49.7% 0.199 317.6);
Tailwind
colors: {
  custom: {
    50: '#b36fc4',
    500: '#8e2caa',
    950: '#000000',
  },
}
SCSS
$custom: #8e2caa;
$custom-light: #b36fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2caa",
  "rgb": {
    "r": 142,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 286.667,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49692,
    "c": 0.19934,
    "h": 317.6
  },
  "luminance": 0.10454
}

Semantic roles & 50–950 ramp

primary
#8E2CAA
secondary
#82C36F
accent
#E24668
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E2CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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