#8E2EA9#8E2EA9

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

Color values

HEX#8E2EA9
RGBrgb(142, 46, 169)
HSLhsl(287, 57%, 42%)
HSVhsv(287, 73%, 66%)
CMYKcmyk(16%, 72.8%, 0%, 33.7%)
CIE-LABlab(38.85, 57.44, -46.93)
CIE-LCHlch(38.85, 74.17, 320.75°)
OKLaboklab(49.81% 0.1453 -0.1318)
OKLCHoklch(49.81% 0.196 317.8)
XYZxyz(19.2927, 10.5702, 38.5524)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2EA9 #49A92E
analogous
#502EA9 #8E2EA9 #A92E87
triadic
#8E2EA9 #A98E2E #2EA98E
tetradic
#8E2EA9 #A9502E #49A92E #2E87A9
square
#8E2EA9 #A9502E #49A92E #2E87A9
split-complementary
#8E2EA9 #87A92E #2EA950
monochromatic
#3D1449 #662179 #8E2EA9 #B047CD #C477DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E2EA9#FFFFFF#000000##FFFFFF
##8E2EA91.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)
#0055AC
Deuteranopia (green-blind)
#325EA6
Tritanopia (blue-blind)
#8D4769
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e2ea9;
/* rgb */ color: rgb(142, 46, 169);
/* oklch */ color: oklch(49.8% 0.196 317.8);
Tailwind
colors: {
  custom: {
    50: '#b370c3',
    500: '#8e2ea9',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ea9;
$custom-light: #b370c3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ea9",
  "rgb": {
    "r": 142,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 286.829,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49813,
    "c": 0.19616,
    "h": 317.8
  },
  "luminance": 0.10569
}

Semantic roles & 50–950 ramp

primary
#8E2EA9
secondary
#83C271
accent
#E04769
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8E2EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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