#8E1FA7#8E1FA7

#8E1FA7 is a mid, highly saturated purple. Relative luminance 0.095; OKLCH L 48.4% C 0.210 H 319.2°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#8E1FA7
RGBrgb(142, 31, 167)
HSLhsl(289, 69%, 39%)
HSVhsv(289, 81%, 65%)
CMYKcmyk(15%, 81.4%, 0%, 34.5%)
CIE-LABlab(36.97, 62.07, -48.75)
CIE-LCHlch(36.97, 78.93, 321.85°)
OKLaboklab(48.44% 0.1586 -0.1371)
OKLCHoklch(48.44% 0.21 319.2)
XYZxyz(18.6194, 9.5217, 37.4088)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1FA7 #38A71F
analogous
#4A1FA7 #8E1FA7 #A71F7C
triadic
#8E1FA7 #A78E1F #1FA78E
tetradic
#8E1FA7 #A74A1F #38A71F #1F7CA7
square
#8E1FA7 #A74A1F #38A71F #1F7CA7
split-complementary
#8E1FA7 #7CA71F #1FA74A
monochromatic
#360C40 #621573 #8E1FA7 #B82BD8 #C95FE1

Accessibility & contrast

On white

7.23
#8E1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8E1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1FA7
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1FA7#FFFFFF#000000##FFFFFF
##8E1FA71.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#2A5AA4
Tritanopia (blue-blind)
#8E3E64
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e1fa7;
/* rgb */ color: rgb(142, 31, 167);
/* oklch */ color: oklch(48.4% 0.210 319.2);
Tailwind
colors: {
  custom: {
    50: '#b36ac2',
    500: '#8e1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #8e1fa7;
$custom-light: #b36ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1fa7",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 288.971,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.48442,
    "c": 0.20961,
    "h": 319.2
  },
  "luminance": 0.09521
}

Semantic roles & 50–950 ramp

primary
#8E1FA7
secondary
#6FC65C
accent
#EC3C5C
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#120712
muted
#817A81

Preview Lab

Preview with #8E1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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