#8E2FAC#8E2FAC

#8E2FAC is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.1% C 0.198 H 316.7°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8E2FAC
RGBrgb(142, 47, 172)
HSLhsl(286, 57%, 43%)
HSVhsv(286, 73%, 67%)
CMYKcmyk(17.4%, 72.7%, 0%, 32.5%)
CIE-LABlab(39.18, 57.65, -48.18)
CIE-LCHlch(39.18, 75.13, 320.11°)
OKLaboklab(50.11% 0.144 -0.1355)
OKLCHoklch(50.11% 0.198 316.7)
XYZxyz(19.6171, 10.7632, 40.0659)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2FAC #4DAC2F
analogous
#4F2FAC #8E2FAC #AC2F8B
triadic
#8E2FAC #AC8E2F #2FAC8E
tetradic
#8E2FAC #AC4F2F #4DAC2F #2F8BAC
square
#8E2FAC #AC4F2F #4DAC2F #2F8BAC
split-complementary
#8E2FAC #8BAC2F #2FAC4F
monochromatic
#3F154C #66227C #8E2FAC #AE4BCE #C47BDB

Accessibility & contrast

On white

6.66
#8E2FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8E2FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2FAC
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2FAC#FFFFFF#000000##FFFFFF
##8E2FAC1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B0
Deuteranopia (green-blind)
#305FA9
Tritanopia (blue-blind)
#8C496B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8e2fac;
/* rgb */ color: rgb(142, 47, 172);
/* oklch */ color: oklch(50.1% 0.198 316.7);
Tailwind
colors: {
  custom: {
    50: '#b371c5',
    500: '#8e2fac',
    950: '#000000',
  },
}
SCSS
$custom: #8e2fac;
$custom-light: #b371c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2fac",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 285.6,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.50112,
    "c": 0.19772,
    "h": 316.7
  },
  "luminance": 0.10762
}

Semantic roles & 50–950 ramp

primary
#8E2FAC
secondary
#87C374
accent
#E0476C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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