#8E2A87#8E2A87

#8E2A87 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.3% C 0.172 H 330.9°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#8E2A87
RGBrgb(142, 42, 135)
HSLhsl(304, 54%, 36%)
HSVhsv(304, 70%, 56%)
CMYKcmyk(0%, 70.4%, 4.9%, 44.3%)
CIE-LABlab(36.29, 52.74, -30.37)
CIE-LCHlch(36.29, 60.86, 330.07°)
OKLaboklab(47.33% 0.1501 -0.0836)
OKLCHoklch(47.33% 0.172 330.9)
XYZxyz(16.3564, 9.1572, 23.8230)
Luminance0.0916 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2A87 #2A8E31
analogous
#632A8E #8E2A87 #8E2A55
triadic
#8E2A87 #878E2A #2A878E
tetradic
#8E2A87 #8E632A #2A8E31 #2A558E
square
#8E2A87 #8E632A #2A8E31 #2A558E
split-complementary
#8E2A87 #558E2A #2A8E63
monochromatic
#300E2D #5F1C5A #8E2A87 #BD38B4 #D162C9

Accessibility & contrast

On white

7.42
#8E2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8E2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2A87
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2A87#FFFFFF#000000##FFFFFF
##8E2A871.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224C8A
Deuteranopia (green-blind)
#485A84
Tritanopia (blue-blind)
#943555
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e2a87;
/* rgb */ color: rgb(142, 42, 135);
/* oklch */ color: oklch(47.3% 0.172 330.9);
Tailwind
colors: {
  custom: {
    50: '#b26daa',
    500: '#8e2a87',
    950: '#000000',
  },
}
SCSS
$custom: #8e2a87;
$custom-light: #b26daa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2a87",
  "rgb": {
    "r": 142,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 304.2,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47327,
    "c": 0.17184,
    "h": 330.9
  },
  "luminance": 0.09156
}

Semantic roles & 50–950 ramp

primary
#8E2A87
secondary
#5DB664
accent
#DE544A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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