#8E3794#8E3794

#8E3794 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.5% C 0.165 H 325.1°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#8E3794
RGBrgb(142, 55, 148)
HSLhsl(296, 46%, 40%)
HSVhsv(296, 63%, 58%)
CMYKcmyk(4.1%, 62.8%, 0%, 42%)
CIE-LABlab(38.94, 49.62, -34.14)
CIE-LCHlch(38.94, 60.23, 325.47°)
OKLaboklab(49.47% 0.1355 -0.0946)
OKLCHoklch(49.47% 0.165 325.1)
XYZxyz(17.8664, 10.6223, 29.1205)
Luminance0.1062 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E3794 #3D9437
analogous
#603794 #8E3794 #94376C
triadic
#8E3794 #948E37 #37948E
tetradic
#8E3794 #946037 #3D9437 #376C94
square
#8E3794 #946037 #3D9437 #376C94
split-complementary
#8E3794 #6C9437 #379460
monochromatic
#38163B #632667 #8E3794 #B54CBC #C878CD

Accessibility & contrast

On white

6.72
#8E3794 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8E3794 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E3794
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E3794#FFFFFF#000000##FFFFFF
##8E37941.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275597
Deuteranopia (green-blind)
#485F92
Tritanopia (blue-blind)
#914460
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8e3794;
/* rgb */ color: rgb(142, 55, 148);
/* oklch */ color: oklch(49.5% 0.165 325.1);
Tailwind
colors: {
  custom: {
    50: '#b274b4',
    500: '#8e3794',
    950: '#000000',
  },
}
SCSS
$custom: #8e3794;
$custom-light: #b274b4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e3794",
  "rgb": {
    "r": 142,
    "g": 55,
    "b": 148
  },
  "hsl": {
    "h": 296.129,
    "s": 45.813,
    "l": 39.804
  },
  "oklch": {
    "l": 0.49474,
    "c": 0.16527,
    "h": 325.1
  },
  "luminance": 0.10621
}

Semantic roles & 50–950 ramp

primary
#8E3794
secondary
#75B671
accent
#D5525B
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8E3794

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

Preview Lab → · Contrast checker → · Palette generator →

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