#8E1C7F#8E1C7F

#8E1C7F is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.181 H 334.3°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#8E1C7F
RGBrgb(142, 28, 127)
HSLhsl(308, 67%, 33%)
HSVhsv(308, 80%, 56%)
CMYKcmyk(0%, 80.3%, 10.6%, 44.3%)
CIE-LABlab(34.22, 56.12, -28.65)
CIE-LCHlch(34.22, 63.01, 332.95°)
OKLaboklab(45.71% 0.1633 -0.0785)
OKLCHoklch(45.71% 0.181 334.3)
XYZxyz(15.4015, 8.1150, 20.8298)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1C7F #1C8E2B
analogous
#641C8E #8E1C7F #8E1C46
triadic
#8E1C7F #7F8E1C #1C7F8E
tetradic
#8E1C7F #8E641C #1C8E2B #1C468E
square
#8E1C7F #8E641C #1C8E2B #1C468E
split-complementary
#8E1C7F #468E1C #1C8E64
monochromatic
#280824 #5B1251 #8E1C7F #C126AD #DB49C8

Accessibility & contrast

On white

8.01
#8E1C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E1C7F
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1C7F#FFFFFF#000000##FFFFFF
##8E1C7F1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194682
Deuteranopia (green-blind)
#46567C
Tritanopia (blue-blind)
#95284D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1c7f;
/* rgb */ color: rgb(142, 28, 127);
/* oklch */ color: oklch(45.7% 0.181 334.3);
Tailwind
colors: {
  custom: {
    50: '#b367a4',
    500: '#8e1c7f',
    950: '#000000',
  },
}
SCSS
$custom: #8e1c7f;
$custom-light: #b367a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1c7f",
  "rgb": {
    "r": 142,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 307.895,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45705,
    "c": 0.1812,
    "h": 334.3
  },
  "luminance": 0.08114
}

Semantic roles & 50–950 ramp

primary
#8E1C7F
secondary
#49BD58
accent
#EA543E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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