#8E2BA7#8E2BA7

#8E2BA7 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.198 H 318.6°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#8E2BA7
RGBrgb(142, 43, 167)
HSLhsl(288, 59%, 41%)
HSVhsv(288, 74%, 65%)
CMYKcmyk(15%, 74.3%, 0%, 34.5%)
CIE-LABlab(38.32, 58.17, -46.57)
CIE-LCHlch(38.32, 74.52, 321.32°)
OKLaboklab(49.4% 0.1484 -0.1308)
OKLCHoklch(49.4% 0.198 318.6)
XYZxyz(18.9933, 10.2694, 37.5335)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2BA7 #44A72B
analogous
#502BA7 #8E2BA7 #A72B82
triadic
#8E2BA7 #A78E2B #2BA78E
tetradic
#8E2BA7 #A7502B #44A72B #2B82A7
square
#8E2BA7 #A7502B #44A72B #2B82A7
split-complementary
#8E2BA7 #82A72B #2BA750
monochromatic
#3B1246 #651E76 #8E2BA7 #B241CE #C572DB

Accessibility & contrast

On white

6.88
#8E2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8E2BA7
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2BA7#FFFFFF#000000##FFFFFF
##8E2BA71.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AA
Deuteranopia (green-blind)
#325DA4
Tritanopia (blue-blind)
#8E4467
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e2ba7;
/* rgb */ color: rgb(142, 43, 167);
/* oklch */ color: oklch(49.4% 0.198 318.6);
Tailwind
colors: {
  custom: {
    50: '#b36fc2',
    500: '#8e2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ba7;
$custom-light: #b36fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ba7",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 287.903,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.49398,
    "c": 0.19779,
    "h": 318.6
  },
  "luminance": 0.10269
}

Semantic roles & 50–950 ramp

primary
#8E2BA7
secondary
#7DC26C
accent
#E24665
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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