#8E2FA7#8E2FA7

#8E2FA7 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.8% C 0.193 H 318.4°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#8E2FA7
RGBrgb(142, 47, 167)
HSLhsl(288, 56%, 42%)
HSVhsv(288, 72%, 65%)
CMYKcmyk(15%, 71.9%, 0%, 34.5%)
CIE-LABlab(38.85, 56.66, -45.72)
CIE-LCHlch(38.85, 72.80, 321.10°)
OKLaboklab(49.78% 0.1444 -0.1283)
OKLCHoklch(49.78% 0.193 318.4)
XYZxyz(19.1459, 10.5747, 37.5843)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2FA7 #48A72F
analogous
#522FA7 #8E2FA7 #A72F84
triadic
#8E2FA7 #A78E2F #2FA78E
tetradic
#8E2FA7 #A7522F #48A72F #2F84A7
square
#8E2FA7 #A7522F #48A72F #2F84A7
split-complementary
#8E2FA7 #84A72F #2FA752
monochromatic
#3D1447 #652277 #8E2FA7 #B048CB #C578D9

Accessibility & contrast

On white

6.74
#8E2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8E2FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2FA7
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2FA7#FFFFFF#000000##FFFFFF
##8E2FA71.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#355FA4
Tritanopia (blue-blind)
#8D4768
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2fa7;
/* rgb */ color: rgb(142, 47, 167);
/* oklch */ color: oklch(49.8% 0.193 318.4);
Tailwind
colors: {
  custom: {
    50: '#b370c2',
    500: '#8e2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #8e2fa7;
$custom-light: #b370c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2fa7",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 287.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49777,
    "c": 0.19318,
    "h": 318.4
  },
  "luminance": 0.10574
}

Semantic roles & 50–950 ramp

primary
#8E2FA7
secondary
#82C171
accent
#DF4868
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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