#8E2EA8#8E2EA8

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

Color values

HEX#8E2EA8
RGBrgb(142, 46, 168)
HSLhsl(287, 57%, 42%)
HSVhsv(287, 73%, 66%)
CMYKcmyk(15.5%, 72.6%, 0%, 34.1%)
CIE-LABlab(38.78, 57.24, -46.43)
CIE-LCHlch(38.78, 73.71, 320.95°)
OKLaboklab(49.75% 0.1453 -0.1304)
OKLCHoklch(49.75% 0.195 318.1)
XYZxyz(19.1992, 10.5328, 38.0599)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2EA8 #48A82E
analogous
#512EA8 #8E2EA8 #A82E85
triadic
#8E2EA8 #A88E2E #2EA88E
tetradic
#8E2EA8 #A8512E #48A82E #2E85A8
square
#8E2EA8 #A8512E #48A82E #2E85A8
split-complementary
#8E2EA8 #85A82E #2EA851
monochromatic
#3D1448 #652178 #8E2EA8 #B047CD #C577DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E2EA8#FFFFFF#000000##FFFFFF
##8E2EA81.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)
#0055AB
Deuteranopia (green-blind)
#335EA5
Tritanopia (blue-blind)
#8D4668
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2ea8;
/* rgb */ color: rgb(142, 46, 168);
/* oklch */ color: oklch(49.7% 0.195 318.1);
Tailwind
colors: {
  custom: {
    50: '#b370c2',
    500: '#8e2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ea8;
$custom-light: #b370c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ea8",
  "rgb": {
    "r": 142,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 287.213,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49746,
    "c": 0.19526,
    "h": 318.1
  },
  "luminance": 0.10532
}

Semantic roles & 50–950 ramp

primary
#8E2EA8
secondary
#82C270
accent
#E04868
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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