#8E1C8F#8E1C8F

#8E1C8F is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.7% C 0.193 H 327.7°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#8E1C8F
RGBrgb(142, 28, 143)
HSLhsl(299, 67%, 34%)
HSVhsv(299, 80%, 56%)
CMYKcmyk(0.7%, 80.4%, 0%, 43.9%)
CIE-LABlab(35.13, 58.68, -37.12)
CIE-LCHlch(35.13, 69.43, 327.68°)
OKLaboklab(46.65% 0.1633 -0.1031)
OKLCHoklch(46.65% 0.193 327.7)
XYZxyz(16.5283, 8.5657, 26.7641)
Luminance0.0856 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1C8F #1D8F1C
analogous
#541C8F #8E1C8F #8F1C56
triadic
#8E1C8F #8F8E1C #1C8F8E
tetradic
#8E1C8F #8F541C #1D8F1C #1C568F
square
#8E1C8F #8F541C #1D8F1C #1C568F
split-complementary
#8E1C8F #568F1C #1C8F54
monochromatic
#280829 #5B125C #8E1C8F #C126C2 #DA4ADC

Accessibility & contrast

On white

7.74
#8E1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8E1C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1C8F
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1C8F#FFFFFF#000000##FFFFFF
##8E1C8F1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#3D588C
Tritanopia (blue-blind)
#933156
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8e1c8f;
/* rgb */ color: rgb(142, 28, 143);
/* oklch */ color: oklch(46.7% 0.193 327.7);
Tailwind
colors: {
  custom: {
    50: '#b368b0',
    500: '#8e1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #8e1c8f;
$custom-light: #b368b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1c8f",
  "rgb": {
    "r": 142,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 299.478,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.46651,
    "c": 0.19311,
    "h": 327.7
  },
  "luminance": 0.08564
}

Semantic roles & 50–950 ramp

primary
#8E1C8F
secondary
#4ABE49
accent
#EA3E3F
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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