#8E2EA6#8E2EA6

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

Color values

HEX#8E2EA6
RGBrgb(142, 46, 166)
HSLhsl(288, 57%, 42%)
HSVhsv(288, 72%, 65%)
CMYKcmyk(14.5%, 72.3%, 0%, 34.9%)
CIE-LABlab(38.65, 56.85, -45.44)
CIE-LCHlch(38.65, 72.78, 321.36°)
OKLaboklab(49.61% 0.1455 -0.1275)
OKLCHoklch(49.61% 0.193 318.8)
XYZxyz(19.0143, 10.4588, 37.0862)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2EA6 #46A62E
analogous
#522EA6 #8E2EA6 #A62E82
triadic
#8E2EA6 #A68E2E #2EA68E
tetradic
#8E2EA6 #A6522E #46A62E #2E82A6
square
#8E2EA6 #A6522E #46A62E #2E82A6
split-complementary
#8E2EA6 #82A62E #2EA652
monochromatic
#3C1346 #652176 #8E2EA6 #B146CC #C576D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E2EA6#FFFFFF#000000##FFFFFF
##8E2EA61.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)
#0055A9
Deuteranopia (green-blind)
#355EA3
Tritanopia (blue-blind)
#8E4667
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2ea6;
/* rgb */ color: rgb(142, 46, 166);
/* oklch */ color: oklch(49.6% 0.193 318.8);
Tailwind
colors: {
  custom: {
    50: '#b370c1',
    500: '#8e2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ea6;
$custom-light: #b370c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ea6",
  "rgb": {
    "r": 142,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 288,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49614,
    "c": 0.19346,
    "h": 318.8
  },
  "luminance": 0.10458
}

Semantic roles & 50–950 ramp

primary
#8E2EA6
secondary
#7FC16F
accent
#E04866
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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