#8E2EA2#8E2EA2

#8E2EA2 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.190 H 320.2°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#8E2EA2
RGBrgb(142, 46, 162)
HSLhsl(290, 56%, 41%)
HSVhsv(290, 72%, 64%)
CMYKcmyk(12.3%, 71.6%, 0%, 36.5%)
CIE-LABlab(38.40, 56.08, -43.45)
CIE-LCHlch(38.40, 70.94, 322.23°)
OKLaboklab(49.35% 0.1458 -0.1217)
OKLCHoklch(49.35% 0.19 320.2)
XYZxyz(18.6531, 10.3143, 35.1838)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2EA2 #42A22E
analogous
#542EA2 #8E2EA2 #A22E7C
triadic
#8E2EA2 #A28E2E #2EA28E
tetradic
#8E2EA2 #A2542E #42A22E #2E7CA2
square
#8E2EA2 #A2542E #42A22E #2E7CA2
split-complementary
#8E2EA2 #7CA22E #2EA254
monochromatic
#3A1343 #642072 #8E2EA2 #B343CA #C673D7

Accessibility & contrast

On white

6.86
#8E2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8E2EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2EA2
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2EA2#FFFFFF#000000##FFFFFF
##8E2EA21.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#395E9F
Tritanopia (blue-blind)
#8F4465
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e2ea2;
/* rgb */ color: rgb(142, 46, 162);
/* oklch */ color: oklch(49.4% 0.190 320.2);
Tailwind
colors: {
  custom: {
    50: '#b370be',
    500: '#8e2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ea2;
$custom-light: #b370be;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ea2",
  "rgb": {
    "r": 142,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 289.655,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.49352,
    "c": 0.18989,
    "h": 320.2
  },
  "luminance": 0.10313
}

Semantic roles & 50–950 ramp

primary
#8E2EA2
secondary
#7BBF6D
accent
#DF4963
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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