#8E2F87#8E2F87

#8E2F87 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.8% C 0.165 H 330.9°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#8E2F87
RGBrgb(142, 47, 135)
HSLhsl(304, 50%, 37%)
HSVhsv(304, 67%, 56%)
CMYKcmyk(0%, 66.9%, 4.9%, 44.3%)
CIE-LABlab(36.99, 50.76, -29.25)
CIE-LCHlch(36.99, 58.58, 330.04°)
OKLaboklab(47.84% 0.1444 -0.0804)
OKLCHoklch(47.84% 0.165 330.9)
XYZxyz(16.5450, 9.5343, 23.8859)
Luminance0.0953 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2F87 #2F8E36
analogous
#662F8E #8E2F87 #8E2F58
triadic
#8E2F87 #878E2F #2F878E
tetradic
#8E2F87 #8E662F #2F8E36 #2F588E
square
#8E2F87 #8E662F #2F8E36 #2F588E
split-complementary
#8E2F87 #588E2F #2F8E66
monochromatic
#321130 #60205B #8E2F87 #BC3EB3 #CE6AC6

Accessibility & contrast

On white

7.22
#8E2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E2F87
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2F87#FFFFFF#000000##FFFFFF
##8E2F871.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284F8A
Deuteranopia (green-blind)
#4A5C85
Tritanopia (blue-blind)
#943957
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e2f87;
/* rgb */ color: rgb(142, 47, 135);
/* oklch */ color: oklch(47.8% 0.165 330.9);
Tailwind
colors: {
  custom: {
    50: '#b26faa',
    500: '#8e2f87',
    950: '#000000',
  },
}
SCSS
$custom: #8e2f87;
$custom-light: #b26faa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2f87",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 304.421,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47839,
    "c": 0.16529,
    "h": 330.9
  },
  "luminance": 0.09533
}

Semantic roles & 50–950 ramp

primary
#8E2F87
secondary
#64B56A
accent
#DA584E
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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