#8E319A#8E319A

#8E319A is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.2% C 0.179 H 322.9°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8E319A
RGBrgb(142, 49, 154)
HSLhsl(293, 52%, 40%)
HSVhsv(293, 68%, 60%)
CMYKcmyk(7.8%, 68.2%, 0%, 39.6%)
CIE-LABlab(38.34, 53.35, -38.72)
CIE-LCHlch(38.34, 65.92, 324.03°)
OKLaboklab(49.16% 0.1428 -0.1079)
OKLCHoklch(49.16% 0.179 322.9)
XYZxyz(18.0858, 10.2815, 31.5975)
Luminance0.1028 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E319A #3D9A31
analogous
#5A319A #8E319A #9A3171
triadic
#8E319A #9A8E31 #319A8E
tetradic
#8E319A #9A5A31 #3D9A31 #31719A
square
#8E319A #9A5A31 #3D9A31 #31719A
split-complementary
#8E319A #719A31 #319A5A
monochromatic
#38133D #63226C #8E319A #B545C4 #C873D2

Accessibility & contrast

On white

6.87
#8E319A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8E319A
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E319A#FFFFFF#000000##FFFFFF
##8E319A1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15539D
Deuteranopia (green-blind)
#415E97
Tritanopia (blue-blind)
#904261
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8e319a;
/* rgb */ color: rgb(142, 49, 154);
/* oklch */ color: oklch(49.2% 0.179 322.9);
Tailwind
colors: {
  custom: {
    50: '#b271b8',
    500: '#8e319a',
    950: '#000000',
  },
}
SCSS
$custom: #8e319a;
$custom-light: #b271b8;
$custom-dark: #000000;
JSON
{
  "hex": "#8e319a",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 293.143,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.49155,
    "c": 0.17897,
    "h": 322.9
  },
  "luminance": 0.10281
}

Semantic roles & 50–950 ramp

primary
#8E319A
secondary
#75BA6C
accent
#DB4D5D
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8E319A

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

Preview Lab → · Contrast checker → · Palette generator →

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