#8E3897#8E3897

#8E3897 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 49.8% C 0.167 H 323.8°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#8E3897
RGBrgb(142, 56, 151)
HSLhsl(294, 46%, 41%)
HSVhsv(294, 63%, 59%)
CMYKcmyk(6%, 62.9%, 0%, 40.8%)
CIE-LABlab(39.27, 49.74, -35.44)
CIE-LCHlch(39.27, 61.07, 324.53°)
OKLaboklab(49.77% 0.1344 -0.0984)
OKLCHoklch(49.77% 0.167 323.8)
XYZxyz(18.1549, 10.8145, 30.4033)
Luminance0.1081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E3897 #419738
analogous
#5E3897 #8E3897 #973870
triadic
#8E3897 #978E38 #38978E
tetradic
#8E3897 #975E38 #419738 #387097
square
#8E3897 #975E38 #419738 #387097
split-complementary
#8E3897 #709738 #38975E
monochromatic
#3A173E #64276A #8E3897 #B34FBE #C67BCE

Accessibility & contrast

On white

6.64
#8E3897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8E3897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E3897
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E3897#FFFFFF#000000##FFFFFF
##8E38971.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26569A
Deuteranopia (green-blind)
#476095
Tritanopia (blue-blind)
#914662
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8e3897;
/* rgb */ color: rgb(142, 56, 151);
/* oklch */ color: oklch(49.8% 0.167 323.8);
Tailwind
colors: {
  custom: {
    50: '#b275b6',
    500: '#8e3897',
    950: '#000000',
  },
}
SCSS
$custom: #8e3897;
$custom-light: #b275b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e3897",
  "rgb": {
    "r": 142,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 294.316,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.49767,
    "c": 0.16657,
    "h": 323.8
  },
  "luminance": 0.10813
}

Semantic roles & 50–950 ramp

primary
#8E3897
secondary
#7AB773
accent
#D6525F
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8E3897

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

Preview Lab → · Contrast checker → · Palette generator →

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