#8D1A7E#8D1A7E

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

Color values

HEX#8D1A7E
RGBrgb(141, 26, 126)
HSLhsl(308, 69%, 33%)
HSVhsv(308, 82%, 55%)
CMYKcmyk(0%, 81.6%, 10.6%, 44.7%)
CIE-LABlab(33.79, 56.29, -28.71)
CIE-LCHlch(33.79, 63.19, 332.98°)
OKLaboklab(45.35% 0.1639 -0.0787)
OKLCHoklch(45.35% 0.182 334.3)
XYZxyz(15.1200, 7.9092, 20.4649)
Luminance0.0791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1A7E #1A8D29
analogous
#621A8D #8D1A7E #8D1A45
triadic
#8D1A7E #7E8D1A #1A7E8D
tetradic
#8D1A7E #8D621A #1A8D29 #1A458D
square
#8D1A7E #8D621A #1A8D29 #1A458D
split-complementary
#8D1A7E #458D1A #1A8D62
monochromatic
#260722 #591050 #8D1A7E #C124AC #DD45C9

Accessibility & contrast

On white

8.13
#8D1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D1A7E
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1A7E#FFFFFF#000000##FFFFFF
##8D1A7E1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174581
Deuteranopia (green-blind)
#45557B
Tritanopia (blue-blind)
#94264C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8d1a7e;
/* rgb */ color: rgb(141, 26, 126);
/* oklch */ color: oklch(45.3% 0.182 334.3);
Tailwind
colors: {
  custom: {
    50: '#b266a4',
    500: '#8d1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #8d1a7e;
$custom-light: #b266a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1a7e",
  "rgb": {
    "r": 141,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 307.826,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45347,
    "c": 0.18178,
    "h": 334.3
  },
  "luminance": 0.07908
}

Semantic roles & 50–950 ramp

primary
#8D1A7E
secondary
#45BE55
accent
#EC533C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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