#8D1A7B#8D1A7B

#8D1A7B is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.180 H 335.7°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#8D1A7B
RGBrgb(141, 26, 123)
HSLhsl(309, 69%, 33%)
HSVhsv(309, 82%, 55%)
CMYKcmyk(0%, 81.6%, 12.8%, 44.7%)
CIE-LABlab(33.63, 55.84, -27.08)
CIE-LCHlch(33.63, 62.06, 334.13°)
OKLaboklab(45.18% 0.1637 -0.074)
OKLCHoklch(45.18% 0.18 335.7)
XYZxyz(14.9293, 7.8330, 19.4607)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1A7B #1A8D2C
analogous
#651A8D #8D1A7B #8D1A42
triadic
#8D1A7B #7B8D1A #1A7B8D
tetradic
#8D1A7B #8D651A #1A8D2C #1A428D
square
#8D1A7B #8D651A #1A8D2C #1A428D
split-complementary
#8D1A7B #428D1A #1A8D65
monochromatic
#260721 #59104E #8D1A7B #C124A8 #DD45C5

Accessibility & contrast

On white

8.18
#8D1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8D1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1A7B
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1A7B#FFFFFF#000000##FFFFFF
##8D1A7B1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B447D
Deuteranopia (green-blind)
#465578
Tritanopia (blue-blind)
#94244A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8d1a7b;
/* rgb */ color: rgb(141, 26, 123);
/* oklch */ color: oklch(45.2% 0.180 335.7);
Tailwind
colors: {
  custom: {
    50: '#b266a1',
    500: '#8d1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #8d1a7b;
$custom-light: #b266a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1a7b",
  "rgb": {
    "r": 141,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 309.391,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.4518,
    "c": 0.17966,
    "h": 335.7
  },
  "luminance": 0.07832
}

Semantic roles & 50–950 ramp

primary
#8D1A7B
secondary
#45BE58
accent
#EC583C
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8D1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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