#8E2FA4#8E2FA4

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

Color values

HEX#8E2FA4
RGBrgb(142, 47, 164)
HSLhsl(289, 55%, 41%)
HSVhsv(289, 71%, 64%)
CMYKcmyk(13.4%, 71.3%, 0%, 35.7%)
CIE-LABlab(38.66, 56.07, -44.23)
CIE-LCHlch(38.66, 71.41, 321.73°)
OKLaboklab(49.58% 0.1446 -0.1239)
OKLCHoklch(49.58% 0.19 319.4)
XYZxyz(18.8718, 10.4651, 36.1407)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2FA4 #45A42F
analogous
#542FA4 #8E2FA4 #A42F80
triadic
#8E2FA4 #A48E2F #2FA48E
tetradic
#8E2FA4 #A4542F #45A42F #2F80A4
square
#8E2FA4 #A4542F #45A42F #2F80A4
split-complementary
#8E2FA4 #80A42F #2FA454
monochromatic
#3C1445 #652174 #8E2FA4 #B146CA #C576D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E2FA4#FFFFFF#000000##FFFFFF
##8E2FA41.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)
#0055A7
Deuteranopia (green-blind)
#385EA1
Tritanopia (blue-blind)
#8E4566
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2fa4;
/* rgb */ color: rgb(142, 47, 164);
/* oklch */ color: oklch(49.6% 0.190 319.4);
Tailwind
colors: {
  custom: {
    50: '#b370bf',
    500: '#8e2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #8e2fa4;
$custom-light: #b370bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2fa4",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 288.718,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49581,
    "c": 0.19047,
    "h": 319.4
  },
  "luminance": 0.10464
}

Semantic roles & 50–950 ramp

primary
#8E2FA4
secondary
#7EC06F
accent
#DF4965
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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