#8D1788#8D1788

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

Color values

HEX#8D1788
RGBrgb(141, 23, 136)
HSLhsl(303, 72%, 32%)
HSVhsv(303, 84%, 55%)
CMYKcmyk(0%, 83.7%, 3.5%, 44.7%)
CIE-LABlab(34.10, 58.61, -34.46)
CIE-LCHlch(34.10, 67.99, 329.54°)
OKLaboklab(45.75% 0.1662 -0.0953)
OKLCHoklch(45.75% 0.192 330.2)
XYZxyz(15.7348, 8.0544, 24.0137)
Luminance0.0805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1788 #178D1C
analogous
#57178D #8D1788 #8D174D
triadic
#8D1788 #888D17 #17888D
tetradic
#8D1788 #8D5717 #178D1C #174D8D
square
#8D1788 #8D5717 #178D1C #174D8D
split-complementary
#8D1788 #4D8D17 #178D57
monochromatic
#240622 #580E55 #8D1788 #C220BB #E03FD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D1788#FFFFFF#000000##FFFFFF
##8D17881.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)
#00468B
Deuteranopia (green-blind)
#3F5685
Tritanopia (blue-blind)
#932A51
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d1788;
/* rgb */ color: rgb(141, 23, 136);
/* oklch */ color: oklch(45.7% 0.192 330.2);
Tailwind
colors: {
  custom: {
    50: '#b266ab',
    500: '#8d1788',
    950: '#000000',
  },
}
SCSS
$custom: #8d1788;
$custom-light: #b266ab;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1788",
  "rgb": {
    "r": 141,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 302.542,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45745,
    "c": 0.19156,
    "h": 330.2
  },
  "luminance": 0.08053
}

Semantic roles & 50–950 ramp

primary
#8D1788
secondary
#40C045
accent
#EF4139
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D1788

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

Preview Lab → · Contrast checker → · Palette generator →

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