#8E1F87#8E1F87

#8E1F87 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.184 H 330.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#8E1F87
RGBrgb(142, 31, 135)
HSLhsl(304, 64%, 34%)
HSVhsv(304, 78%, 56%)
CMYKcmyk(0%, 78.2%, 4.9%, 44.3%)
CIE-LABlab(34.97, 56.50, -32.45)
CIE-LCHlch(34.97, 65.16, 330.13°)
OKLaboklab(46.38% 0.161 -0.0895)
OKLCHoklch(46.38% 0.184 330.9)
XYZxyz(16.0185, 8.4813, 23.7104)
Luminance0.0848 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1F87 #1F8E26
analogous
#5E1F8E #8E1F87 #8E1F50
triadic
#8E1F87 #878E1F #1F878E
tetradic
#8E1F87 #8E5E1F #1F8E26 #1F508E
square
#8E1F87 #8E5E1F #1F8E26 #1F508E
split-complementary
#8E1F87 #508E1F #1F8E5E
monochromatic
#2A0927 #5C1457 #8E1F87 #C02AB7 #D94FD0

Accessibility & contrast

On white

7.79
#8E1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8E1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1F87
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1F87#FFFFFF#000000##FFFFFF
##8E1F871.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12498A
Deuteranopia (green-blind)
#435884
Tritanopia (blue-blind)
#942E52
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e1f87;
/* rgb */ color: rgb(142, 31, 135);
/* oklch */ color: oklch(46.4% 0.184 330.9);
Tailwind
colors: {
  custom: {
    50: '#b368aa',
    500: '#8e1f87',
    950: '#000000',
  },
}
SCSS
$custom: #8e1f87;
$custom-light: #b368aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1f87",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 303.784,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4638,
    "c": 0.18421,
    "h": 330.9
  },
  "luminance": 0.0848
}

Semantic roles & 50–950 ramp

primary
#8E1F87
secondary
#4DBB54
accent
#E74B41
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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