#8E2FA1#8E2FA1

#8E2FA1 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.4% C 0.188 H 320.5°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#8E2FA1
RGBrgb(142, 47, 161)
HSLhsl(290, 55%, 41%)
HSVhsv(290, 71%, 63%)
CMYKcmyk(11.8%, 70.8%, 0%, 36.9%)
CIE-LABlab(38.48, 55.49, -42.72)
CIE-LCHlch(38.48, 70.03, 322.41°)
OKLaboklab(49.39% 0.1448 -0.1195)
OKLCHoklch(49.39% 0.188 320.5)
XYZxyz(18.6041, 10.3580, 34.7306)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2FA1 #42A12F
analogous
#552FA1 #8E2FA1 #A12F7B
triadic
#8E2FA1 #A18E2F #2FA18E
tetradic
#8E2FA1 #A1552F #42A12F #2F7BA1
square
#8E2FA1 #A1552F #42A12F #2F7BA1
split-complementary
#8E2FA1 #7BA12F #2FA155
monochromatic
#3A1342 #642172 #8E2FA1 #B345C9 #C674D6

Accessibility & contrast

On white

6.84
#8E2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8E2FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2FA1
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2FA1#FFFFFF#000000##FFFFFF
##8E2FA11.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A4
Deuteranopia (green-blind)
#3A5E9E
Tritanopia (blue-blind)
#8F4465
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2fa1;
/* rgb */ color: rgb(142, 47, 161);
/* oklch */ color: oklch(49.4% 0.188 320.5);
Tailwind
colors: {
  custom: {
    50: '#b270bd',
    500: '#8e2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #8e2fa1;
$custom-light: #b270bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2fa1",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 290,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.49387,
    "c": 0.18778,
    "h": 320.5
  },
  "luminance": 0.10357
}

Semantic roles & 50–950 ramp

primary
#8E2FA1
secondary
#7BBE6E
accent
#DE4A62
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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