#8E1D7C#8E1D7C

#8E1D7C is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.178 H 335.7°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#8E1D7C
RGBrgb(142, 29, 124)
HSLhsl(310, 66%, 34%)
HSVhsv(310, 80%, 56%)
CMYKcmyk(0%, 79.6%, 12.7%, 44.3%)
CIE-LABlab(34.16, 55.38, -26.87)
CIE-LCHlch(34.16, 61.55, 334.12°)
OKLaboklab(45.61% 0.1623 -0.0734)
OKLCHoklch(45.61% 0.178 335.7)
XYZxyz(15.2330, 8.0862, 19.8234)
Luminance0.0809 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1D7C #1D8E2F
analogous
#671D8E #8E1D7C #8E1D43
triadic
#8E1D7C #7C8E1D #1D7C8E
tetradic
#8E1D7C #8E671D #1D8E2F #1D438E
square
#8E1D7C #8E671D #1D8E2F #1D438E
split-complementary
#8E1D7C #438E1D #1D8E67
monochromatic
#280823 #5B1350 #8E1D7C #C127A8 #DA4BC3

Accessibility & contrast

On white

8.02
#8E1D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8E1D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1D7C
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1D7C#FFFFFF#000000##FFFFFF
##8E1D7C1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E467E
Deuteranopia (green-blind)
#485679
Tritanopia (blue-blind)
#95274B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1d7c;
/* rgb */ color: rgb(142, 29, 124);
/* oklch */ color: oklch(45.6% 0.178 335.7);
Tailwind
colors: {
  custom: {
    50: '#b367a2',
    500: '#8e1d7c',
    950: '#000000',
  },
}
SCSS
$custom: #8e1d7c;
$custom-light: #b367a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1d7c",
  "rgb": {
    "r": 142,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 309.558,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45611,
    "c": 0.1781,
    "h": 335.7
  },
  "luminance": 0.08085
}

Semantic roles & 50–950 ramp

primary
#8E1D7C
secondary
#4ABD5C
accent
#E95A3F
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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