#8E1D7F#8E1D7F

#8E1D7F is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.180 H 334.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8E1D7F
RGBrgb(142, 29, 127)
HSLhsl(308, 66%, 34%)
HSVhsv(308, 80%, 56%)
CMYKcmyk(0%, 79.6%, 10.6%, 44.3%)
CIE-LABlab(34.32, 55.83, -28.50)
CIE-LCHlch(34.32, 62.69, 332.96°)
OKLaboklab(45.78% 0.1625 -0.0781)
OKLCHoklch(45.78% 0.18 334.3)
XYZxyz(15.4256, 8.1632, 20.8378)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1D7F #1D8E2C
analogous
#641D8E #8E1D7F #8E1D46
triadic
#8E1D7F #7F8E1D #1D7F8E
tetradic
#8E1D7F #8E641D #1D8E2C #1D468E
square
#8E1D7F #8E641D #1D8E2C #1D468E
split-complementary
#8E1D7F #468E1D #1D8E64
monochromatic
#280824 #5B1352 #8E1D7F #C127AC #DA4BC7

Accessibility & contrast

On white

7.98
#8E1D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8E1D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1D7F
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1D7F#FFFFFF#000000##FFFFFF
##8E1D7F1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4682
Deuteranopia (green-blind)
#46567C
Tritanopia (blue-blind)
#95284D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e1d7f;
/* rgb */ color: rgb(142, 29, 127);
/* oklch */ color: oklch(45.8% 0.180 334.3);
Tailwind
colors: {
  custom: {
    50: '#b367a4',
    500: '#8e1d7f',
    950: '#000000',
  },
}
SCSS
$custom: #8e1d7f;
$custom-light: #b367a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1d7f",
  "rgb": {
    "r": 142,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 307.965,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45776,
    "c": 0.18024,
    "h": 334.3
  },
  "luminance": 0.08162
}

Semantic roles & 50–950 ramp

primary
#8E1D7F
secondary
#4ABD59
accent
#E9553F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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