#8D1B7C#8D1B7C

#8D1B7C is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.179 H 335.2°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#8D1B7C
RGBrgb(141, 27, 124)
HSLhsl(309, 68%, 33%)
HSVhsv(309, 81%, 55%)
CMYKcmyk(0%, 80.9%, 12.1%, 44.7%)
CIE-LABlab(33.78, 55.72, -27.48)
CIE-LCHlch(33.78, 62.13, 333.75°)
OKLaboklab(45.3% 0.163 -0.0752)
OKLCHoklch(45.3% 0.179 335.2)
XYZxyz(15.0147, 7.9032, 19.7996)
Luminance0.0790 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1B7C #1B8D2C
analogous
#651B8D #8D1B7C #8D1B43
triadic
#8D1B7C #7C8D1B #1B7C8D
tetradic
#8D1B7C #8D651B #1B8D2C #1B438D
square
#8D1B7C #8D651B #1B8D2C #1B438D
split-complementary
#8D1B7C #438D1B #1B8D65
monochromatic
#260722 #5A114F #8D1B7C #C025A9 #DC47C5

Accessibility & contrast

On white

8.14
#8D1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8D1B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1B7C
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1B7C#FFFFFF#000000##FFFFFF
##8D1B7C1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B457F
Deuteranopia (green-blind)
#465579
Tritanopia (blue-blind)
#94264B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8d1b7c;
/* rgb */ color: rgb(141, 27, 124);
/* oklch */ color: oklch(45.3% 0.179 335.2);
Tailwind
colors: {
  custom: {
    50: '#b266a2',
    500: '#8d1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #8d1b7c;
$custom-light: #b266a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1b7c",
  "rgb": {
    "r": 141,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 308.947,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45303,
    "c": 0.17945,
    "h": 335.2
  },
  "luminance": 0.07902
}

Semantic roles & 50–950 ramp

primary
#8D1B7C
secondary
#46BD58
accent
#EB573D
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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