#8E2487#8E2487

#8E2487 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.179 H 330.9°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#8E2487
RGBrgb(142, 36, 135)
HSLhsl(304, 60%, 35%)
HSVhsv(304, 75%, 56%)
CMYKcmyk(0%, 74.6%, 4.9%, 44.3%)
CIE-LABlab(35.52, 54.90, -31.57)
CIE-LCHlch(35.52, 63.33, 330.10°)
OKLaboklab(46.78% 0.1564 -0.087)
OKLCHoklch(46.78% 0.179 330.9)
XYZxyz(16.1593, 8.7631, 23.7573)
Luminance0.0876 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2487 #248E2B
analogous
#60248E #8E2487 #8E2452
triadic
#8E2487 #878E24 #24878E
tetradic
#8E2487 #8E6024 #248E2B #24528E
square
#8E2487 #8E6024 #248E2B #24528E
split-complementary
#8E2487 #528E24 #248E60
monochromatic
#2C0B2A #5D1859 #8E2487 #BF30B5 #D558CC

Accessibility & contrast

On white

7.63
#8E2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8E2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2487
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2487#FFFFFF#000000##FFFFFF
##8E24871.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4A8A
Deuteranopia (green-blind)
#455984
Tritanopia (blue-blind)
#943153
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e2487;
/* rgb */ color: rgb(142, 36, 135);
/* oklch */ color: oklch(46.8% 0.179 330.9);
Tailwind
colors: {
  custom: {
    50: '#b26aaa',
    500: '#8e2487',
    950: '#000000',
  },
}
SCSS
$custom: #8e2487;
$custom-light: #b26aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2487",
  "rgb": {
    "r": 142,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 303.962,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4678,
    "c": 0.17895,
    "h": 330.9
  },
  "luminance": 0.08762
}

Semantic roles & 50–950 ramp

primary
#8E2487
secondary
#55B95B
accent
#E34F45
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E2487

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

Preview Lab → · Contrast checker → · Palette generator →

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