#8E3397#8E3397

#8E3397 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.2% C 0.174 H 324.0°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#8E3397
RGBrgb(142, 51, 151)
HSLhsl(295, 50%, 40%)
HSVhsv(295, 66%, 59%)
CMYKcmyk(6%, 66.2%, 0%, 40.8%)
CIE-LABlab(38.47, 51.95, -36.70)
CIE-LCHlch(38.47, 63.60, 324.76°)
OKLaboklab(49.19% 0.1405 -0.102)
OKLCHoklch(49.19% 0.174 324)
XYZxyz(17.9246, 10.3538, 30.3265)
Luminance0.1035 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E3397 #3C9733
analogous
#5C3397 #8E3397 #97336E
triadic
#8E3397 #978E33 #33978E
tetradic
#8E3397 #975C33 #3C9733 #336E97
square
#8E3397 #975C33 #3C9733 #336E97
split-complementary
#8E3397 #6E9733 #33975C
monochromatic
#38143C #632469 #8E3397 #B647C1 #C874D0

Accessibility & contrast

On white

6.84
#8E3397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8E3397 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E3397
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E3397#FFFFFF#000000##FFFFFF
##8E33971.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E549A
Deuteranopia (green-blind)
#445E94
Tritanopia (blue-blind)
#914260
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e3397;
/* rgb */ color: rgb(142, 51, 151);
/* oklch */ color: oklch(49.2% 0.174 324.0);
Tailwind
colors: {
  custom: {
    50: '#b272b6',
    500: '#8e3397',
    950: '#000000',
  },
}
SCSS
$custom: #8e3397;
$custom-light: #b272b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e3397",
  "rgb": {
    "r": 142,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 294.6,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4919,
    "c": 0.17362,
    "h": 324
  },
  "luminance": 0.10353
}

Semantic roles & 50–950 ramp

primary
#8E3397
secondary
#74B86D
accent
#D94F5B
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8E3397

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

Preview Lab → · Contrast checker → · Palette generator →

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