#8E1F97#8E1F97

#8E1F97 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.197 H 324.7°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#8E1F97
RGBrgb(142, 31, 151)
HSLhsl(296, 66%, 36%)
HSVhsv(296, 79%, 59%)
CMYKcmyk(6%, 79.5%, 0%, 40.8%)
CIE-LABlab(35.92, 59.19, -40.76)
CIE-LCHlch(35.92, 71.87, 325.45°)
OKLaboklab(47.37% 0.1605 -0.1137)
OKLCHoklch(47.37% 0.197 324.7)
XYZxyz(17.2308, 8.9663, 30.0953)
Luminance0.0896 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1F97 #28971F
analogous
#521F97 #8E1F97 #971F64
triadic
#8E1F97 #978E1F #1F978E
tetradic
#8E1F97 #97521F #28971F #1F6497
square
#8E1F97 #97521F #28971F #1F6497
split-complementary
#8E1F97 #64971F #1F9752
monochromatic
#2E0A31 #5E1564 #8E1F97 #BE29CA #D254DC

Accessibility & contrast

On white

7.52
#8E1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8E1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1F97
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1F97#FFFFFF#000000##FFFFFF
##8E1F971.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#395994
Tritanopia (blue-blind)
#91365B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e1f97;
/* rgb */ color: rgb(142, 31, 151);
/* oklch */ color: oklch(47.4% 0.197 324.7);
Tailwind
colors: {
  custom: {
    50: '#b369b6',
    500: '#8e1f97',
    950: '#000000',
  },
}
SCSS
$custom: #8e1f97;
$custom-light: #b369b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1f97",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 295.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.47365,
    "c": 0.19666,
    "h": 324.7
  },
  "luminance": 0.08965
}

Semantic roles & 50–950 ramp

primary
#8E1F97
secondary
#5BBF52
accent
#E93F4C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8E1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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