#8E1C7D#8E1C7D

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

Color values

HEX#8E1C7D
RGBrgb(142, 28, 125)
HSLhsl(309, 67%, 33%)
HSVhsv(309, 80%, 56%)
CMYKcmyk(0%, 80.3%, 12%, 44.3%)
CIE-LABlab(34.11, 55.82, -27.57)
CIE-LCHlch(34.11, 62.25, 333.71°)
OKLaboklab(45.59% 0.1632 -0.0754)
OKLCHoklch(45.59% 0.18 335.2)
XYZxyz(15.2725, 8.0634, 20.1501)
Luminance0.0806 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1C7D #1C8E2D
analogous
#661C8E #8E1C7D #8E1C44
triadic
#8E1C7D #7D8E1C #1C7D8E
tetradic
#8E1C7D #8E661C #1C8E2D #1C448E
square
#8E1C7D #8E661C #1C8E2D #1C448E
split-complementary
#8E1C7D #448E1C #1C8E66
monochromatic
#280823 #5B1250 #8E1C7D #C126AA #DB49C5

Accessibility & contrast

On white

8.04
#8E1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8E1C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1C7D
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1C7D#FFFFFF#000000##FFFFFF
##8E1C7D1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4680
Deuteranopia (green-blind)
#47567A
Tritanopia (blue-blind)
#95274C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1c7d;
/* rgb */ color: rgb(142, 28, 125);
/* oklch */ color: oklch(45.6% 0.180 335.2);
Tailwind
colors: {
  custom: {
    50: '#b367a3',
    500: '#8e1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #8e1c7d;
$custom-light: #b367a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1c7d",
  "rgb": {
    "r": 142,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 308.947,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45594,
    "c": 0.17977,
    "h": 335.2
  },
  "luminance": 0.08062
}

Semantic roles & 50–950 ramp

primary
#8E1C7D
secondary
#49BD5A
accent
#EA583E
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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