#8E2EA5#8E2EA5

#8E2EA5 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.5% C 0.193 H 319.1°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#8E2EA5
RGBrgb(142, 46, 165)
HSLhsl(288, 56%, 41%)
HSVhsv(288, 72%, 65%)
CMYKcmyk(13.9%, 72.1%, 0%, 35.3%)
CIE-LABlab(38.59, 56.66, -44.95)
CIE-LCHlch(38.59, 72.32, 321.57°)
OKLaboklab(49.55% 0.1456 -0.126)
OKLCHoklch(49.55% 0.193 319.1)
XYZxyz(18.9230, 10.4223, 36.6050)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2EA5 #45A52E
analogous
#532EA5 #8E2EA5 #A52E81
triadic
#8E2EA5 #A58E2E #2EA58E
tetradic
#8E2EA5 #A5532E #45A52E #2E81A5
square
#8E2EA5 #A5532E #45A52E #2E81A5
split-complementary
#8E2EA5 #81A52E #2EA553
monochromatic
#3C1345 #652175 #8E2EA5 #B145CB #C575D8

Accessibility & contrast

On white

6.81
#8E2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8E2EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2EA5
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2EA5#FFFFFF#000000##FFFFFF
##8E2EA51.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A8
Deuteranopia (green-blind)
#365EA2
Tritanopia (blue-blind)
#8E4567
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2ea5;
/* rgb */ color: rgb(142, 46, 165);
/* oklch */ color: oklch(49.5% 0.193 319.1);
Tailwind
colors: {
  custom: {
    50: '#b370c0',
    500: '#8e2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ea5;
$custom-light: #b370c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ea5",
  "rgb": {
    "r": 142,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 288.403,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49548,
    "c": 0.19257,
    "h": 319.1
  },
  "luminance": 0.10421
}

Semantic roles & 50–950 ramp

primary
#8E2EA5
secondary
#7EC06F
accent
#E04865
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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