#8E1FA8#8E1FA8

#8E1FA8 is a mid, highly saturated purple. Relative luminance 0.096; OKLCH L 48.5% C 0.210 H 318.8°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#8E1FA8
RGBrgb(142, 31, 168)
HSLhsl(289, 69%, 39%)
HSVhsv(289, 82%, 66%)
CMYKcmyk(15.5%, 81.5%, 0%, 34.1%)
CIE-LABlab(37.04, 62.26, -49.24)
CIE-LCHlch(37.04, 79.37, 321.66°)
OKLaboklab(48.51% 0.1584 -0.1385)
OKLCHoklch(48.51% 0.21 318.8)
XYZxyz(18.7122, 9.5588, 37.8976)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1FA8 #39A81F
analogous
#4A1FA8 #8E1FA8 #A81F7E
triadic
#8E1FA8 #A88E1F #1FA88E
tetradic
#8E1FA8 #A84A1F #39A81F #1F7EA8
square
#8E1FA8 #A84A1F #39A81F #1F7EA8
split-complementary
#8E1FA8 #7EA81F #1FA84A
monochromatic
#370C41 #621574 #8E1FA8 #B72CD8 #C960E2

Accessibility & contrast

On white

7.21
#8E1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8E1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1FA8
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1FA8#FFFFFF#000000##FFFFFF
##8E1FA81.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#295BA5
Tritanopia (blue-blind)
#8E3F65
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e1fa8;
/* rgb */ color: rgb(142, 31, 168);
/* oklch */ color: oklch(48.5% 0.210 318.8);
Tailwind
colors: {
  custom: {
    50: '#b36ac3',
    500: '#8e1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #8e1fa8;
$custom-light: #b36ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1fa8",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 288.613,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48512,
    "c": 0.21042,
    "h": 318.8
  },
  "luminance": 0.09558
}

Semantic roles & 50–950 ramp

primary
#8E1FA8
secondary
#71C65D
accent
#EC3C5D
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#120712
muted
#817A81

Preview Lab

Preview with #8E1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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