#8E2E87#8E2E87

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

Color values

HEX#8E2E87
RGBrgb(142, 46, 135)
HSLhsl(304, 51%, 37%)
HSVhsv(304, 68%, 56%)
CMYKcmyk(0%, 67.6%, 4.9%, 44.3%)
CIE-LABlab(36.85, 51.17, -29.48)
CIE-LCHlch(36.85, 59.05, 330.05°)
OKLaboklab(47.73% 0.1456 -0.0811)
OKLCHoklch(47.73% 0.167 330.9)
XYZxyz(16.5054, 9.4553, 23.8727)
Luminance0.0945 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2E87 #2E8E35
analogous
#652E8E #8E2E87 #8E2E57
triadic
#8E2E87 #878E2E #2E878E
tetradic
#8E2E87 #8E652E #2E8E35 #2E578E
square
#8E2E87 #8E652E #2E8E35 #2E578E
split-complementary
#8E2E87 #578E2E #2E8E65
monochromatic
#32102F #601F5B #8E2E87 #BC3DB3 #CE68C7

Accessibility & contrast

On white

7.26
#8E2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8E2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2E87
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2E87#FFFFFF#000000##FFFFFF
##8E2E871.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274E8A
Deuteranopia (green-blind)
#4A5B85
Tritanopia (blue-blind)
#943856
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e2e87;
/* rgb */ color: rgb(142, 46, 135);
/* oklch */ color: oklch(47.7% 0.167 330.9);
Tailwind
colors: {
  custom: {
    50: '#b26faa',
    500: '#8e2e87',
    950: '#000000',
  },
}
SCSS
$custom: #8e2e87;
$custom-light: #b26faa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2e87",
  "rgb": {
    "r": 142,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 304.375,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47733,
    "c": 0.16664,
    "h": 330.9
  },
  "luminance": 0.09454
}

Semantic roles & 50–950 ramp

primary
#8E2E87
secondary
#63B569
accent
#DB584D
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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