#8E1D7B#8E1D7B

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

Color values

HEX#8E1D7B
RGBrgb(142, 29, 123)
HSLhsl(310, 66%, 34%)
HSVhsv(310, 80%, 56%)
CMYKcmyk(0%, 79.6%, 13.4%, 44.3%)
CIE-LABlab(34.11, 55.23, -26.32)
CIE-LCHlch(34.11, 61.18, 334.52°)
OKLaboklab(45.56% 0.1622 -0.0718)
OKLCHoklch(45.56% 0.177 336.1)
XYZxyz(15.1701, 8.0610, 19.4920)
Luminance0.0806 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1D7B #1D8E30
analogous
#681D8E #8E1D7B #8E1D43
triadic
#8E1D7B #7B8E1D #1D7B8E
tetradic
#8E1D7B #8E681D #1D8E30 #1D438E
square
#8E1D7B #8E681D #1D8E30 #1D438E
split-complementary
#8E1D7B #438E1D #1D8E68
monochromatic
#280823 #5B134F #8E1D7B #C127A7 #DA4BC2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E1D7B#FFFFFF#000000##FFFFFF
##8E1D7B1.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)
#1F457D
Deuteranopia (green-blind)
#485678
Tritanopia (blue-blind)
#96264B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1d7b;
/* rgb */ color: rgb(142, 29, 123);
/* oklch */ color: oklch(45.6% 0.177 336.1);
Tailwind
colors: {
  custom: {
    50: '#b367a1',
    500: '#8e1d7b',
    950: '#000000',
  },
}
SCSS
$custom: #8e1d7b;
$custom-light: #b367a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1d7b",
  "rgb": {
    "r": 142,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 310.088,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45556,
    "c": 0.17739,
    "h": 336.1
  },
  "luminance": 0.0806
}

Semantic roles & 50–950 ramp

primary
#8E1D7B
secondary
#4ABD5D
accent
#E95B3F
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8E1D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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