#8E1287#8E1287

#8E1287 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.6% C 0.195 H 331.0°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#8E1287
RGBrgb(142, 18, 135)
HSLhsl(303, 78%, 31%)
HSVhsv(303, 87%, 56%)
CMYKcmyk(0%, 87.3%, 4.9%, 44.3%)
CIE-LABlab(33.85, 59.75, -34.23)
CIE-LCHlch(33.85, 68.86, 330.19°)
OKLaboklab(45.58% 0.1704 -0.0946)
OKLCHoklch(45.58% 0.195 331)
XYZxyz(15.7448, 7.9340, 23.6191)
Luminance0.0793 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1287 #128E19
analogous
#57128E #8E1287 #8E1249
triadic
#8E1287 #878E12 #12878E
tetradic
#8E1287 #8E5712 #128E19 #12498E
square
#8E1287 #8E5712 #128E19 #12498E
split-complementary
#8E1287 #498E12 #128E57
monochromatic
#210420 #580B53 #8E1287 #C419BB #E535DB

Accessibility & contrast

On white

8.12
#8E1287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8E1287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1287
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1287#FFFFFF#000000##FFFFFF
##8E12871.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#3F5584
Tritanopia (blue-blind)
#94274F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1287;
/* rgb */ color: rgb(142, 18, 135);
/* oklch */ color: oklch(45.6% 0.195 331.0);
Tailwind
colors: {
  custom: {
    50: '#b364aa',
    500: '#8e1287',
    950: '#000000',
  },
}
SCSS
$custom: #8e1287;
$custom-light: #b364aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1287",
  "rgb": {
    "r": 142,
    "g": 18,
    "b": 135
  },
  "hsl": {
    "h": 303.387,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.45582,
    "c": 0.19488,
    "h": 331
  },
  "luminance": 0.07933
}

Semantic roles & 50–950 ramp

primary
#8E1287
secondary
#3AC241
accent
#F43F34
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#120610
muted
#817A7F

Preview Lab

Preview with #8E1287

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

Preview Lab → · Contrast checker → · Palette generator →

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