#8E1FA1#8E1FA1

#8E1FA1 is a mid, highly saturated purple. Relative luminance 0.093; OKLCH L 48.0% C 0.205 H 321.1°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#8E1FA1
RGBrgb(142, 31, 161)
HSLhsl(291, 68%, 38%)
HSVhsv(291, 81%, 63%)
CMYKcmyk(11.8%, 80.7%, 0%, 36.9%)
CIE-LABlab(36.56, 60.97, -45.79)
CIE-LCHlch(36.56, 76.25, 323.09°)
OKLaboklab(48.03% 0.1594 -0.1284)
OKLCHoklch(48.03% 0.205 321.1)
XYZxyz(18.0776, 9.3050, 34.5551)
Luminance0.0930 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1FA1 #32A11F
analogous
#4D1FA1 #8E1FA1 #A11F73
triadic
#8E1FA1 #A18E1F #1FA18E
tetradic
#8E1FA1 #A14D1F #32A11F #1F73A1
square
#8E1FA1 #A14D1F #32A11F #1F73A1
split-complementary
#8E1FA1 #73A11F #1FA14D
monochromatic
#330B3A #61156E #8E1FA1 #BB29D4 #CC5BDF

Accessibility & contrast

On white

7.34
#8E1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8E1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1FA1
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1FA1#FFFFFF#000000##FFFFFF
##8E1FA11.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#305A9E
Tritanopia (blue-blind)
#8F3B61
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8e1fa1;
/* rgb */ color: rgb(142, 31, 161);
/* oklch */ color: oklch(48.0% 0.205 321.1);
Tailwind
colors: {
  custom: {
    50: '#b36abd',
    500: '#8e1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #8e1fa1;
$custom-light: #b36abd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1fa1",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 291.231,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48028,
    "c": 0.2047,
    "h": 321.1
  },
  "luminance": 0.09304
}

Semantic roles & 50–950 ramp

primary
#8E1FA1
secondary
#68C458
accent
#EB3D57
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8E1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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