#8E1B87#8E1B87

#8E1B87 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.188 H 330.9°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#8E1B87
RGBrgb(142, 27, 135)
HSLhsl(304, 68%, 33%)
HSVhsv(304, 81%, 56%)
CMYKcmyk(0%, 81%, 4.9%, 44.3%)
CIE-LABlab(34.57, 57.64, -33.08)
CIE-LCHlch(34.57, 66.46, 330.15°)
OKLaboklab(46.1% 0.1643 -0.0913)
OKLCHoklch(46.1% 0.188 330.9)
XYZxyz(15.9204, 8.2852, 23.6777)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1B87 #1B8E22
analogous
#5B1B8E #8E1B87 #8E1B4D
triadic
#8E1B87 #878E1B #1B878E
tetradic
#8E1B87 #8E5B1B #1B8E22 #1B4D8E
square
#8E1B87 #8E5B1B #1B8E22 #1B4D8E
split-complementary
#8E1B87 #4D8E1B #1B8E5B
monochromatic
#270725 #5B1156 #8E1B87 #C125B8 #DC47D3

Accessibility & contrast

On white

7.90
#8E1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8E1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1B87
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1B87#FFFFFF#000000##FFFFFF
##8E1B871.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A478A
Deuteranopia (green-blind)
#415784
Tritanopia (blue-blind)
#942C51
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e1b87;
/* rgb */ color: rgb(142, 27, 135);
/* oklch */ color: oklch(46.1% 0.188 330.9);
Tailwind
colors: {
  custom: {
    50: '#b367aa',
    500: '#8e1b87',
    950: '#000000',
  },
}
SCSS
$custom: #8e1b87;
$custom-light: #b367aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1b87",
  "rgb": {
    "r": 142,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 303.652,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.46098,
    "c": 0.18796,
    "h": 330.9
  },
  "luminance": 0.08284
}

Semantic roles & 50–950 ramp

primary
#8E1B87
secondary
#47BE4E
accent
#EB473D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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