#8E2FA6#8E2FA6

#8E2FA6 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.7% C 0.192 H 318.7°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#8E2FA6
RGBrgb(142, 47, 166)
HSLhsl(288, 56%, 42%)
HSVhsv(288, 72%, 65%)
CMYKcmyk(14.5%, 71.7%, 0%, 34.9%)
CIE-LABlab(38.79, 56.46, -45.22)
CIE-LCHlch(38.79, 72.34, 321.31°)
OKLaboklab(49.71% 0.1445 -0.1269)
OKLCHoklch(49.71% 0.192 318.7)
XYZxyz(19.0539, 10.5379, 37.0994)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2FA6 #47A62F
analogous
#532FA6 #8E2FA6 #A62F83
triadic
#8E2FA6 #A68E2F #2FA68E
tetradic
#8E2FA6 #A6532F #47A62F #2F83A6
square
#8E2FA6 #A6532F #47A62F #2F83A6
split-complementary
#8E2FA6 #83A62F #2FA653
monochromatic
#3C1447 #652176 #8E2FA6 #B047CB #C577D8

Accessibility & contrast

On white

6.76
#8E2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8E2FA6
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2FA6#FFFFFF#000000##FFFFFF
##8E2FA61.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#365EA3
Tritanopia (blue-blind)
#8E4667
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2fa6;
/* rgb */ color: rgb(142, 47, 166);
/* oklch */ color: oklch(49.7% 0.192 318.7);
Tailwind
colors: {
  custom: {
    50: '#b370c1',
    500: '#8e2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #8e2fa6;
$custom-light: #b370c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2fa6",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 287.899,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49712,
    "c": 0.19228,
    "h": 318.7
  },
  "luminance": 0.10537
}

Semantic roles & 50–950 ramp

primary
#8E2FA6
secondary
#80C170
accent
#DF4967
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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