#8D1B8E#8D1B8E

#8D1B8E is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.4% C 0.193 H 327.8°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#8D1B8E
RGBrgb(141, 27, 142)
HSLhsl(299, 68%, 33%)
HSVhsv(299, 81%, 56%)
CMYKcmyk(0.7%, 81%, 0%, 44.3%)
CIE-LABlab(34.80, 58.57, -37.04)
CIE-LCHlch(34.80, 69.30, 327.69°)
OKLaboklab(46.36% 0.163 -0.1029)
OKLCHoklch(46.36% 0.193 327.8)
XYZxyz(16.2587, 8.4008, 26.3511)
Luminance0.0840 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1B8E #1C8E1B
analogous
#531B8E #8D1B8E #8E1B55
triadic
#8D1B8E #8E8D1B #1B8E8D
tetradic
#8D1B8E #8E531B #1C8E1B #1B558E
square
#8D1B8E #8E531B #1C8E1B #1B558E
split-complementary
#8D1B8E #558E1B #1B8E53
monochromatic
#270727 #5A115B #8D1B8E #C025C1 #DB47DC

Accessibility & contrast

On white

7.84
#8D1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8D1B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1B8E
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1B8E#FFFFFF#000000##FFFFFF
##8D1B8E1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#3C578B
Tritanopia (blue-blind)
#913055
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8d1b8e;
/* rgb */ color: rgb(141, 27, 142);
/* oklch */ color: oklch(46.4% 0.193 327.8);
Tailwind
colors: {
  custom: {
    50: '#b267af',
    500: '#8d1b8e',
    950: '#000000',
  },
}
SCSS
$custom: #8d1b8e;
$custom-light: #b267af;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1b8e",
  "rgb": {
    "r": 141,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 299.478,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.46363,
    "c": 0.19277,
    "h": 327.8
  },
  "luminance": 0.084
}

Semantic roles & 50–950 ramp

primary
#8D1B8E
secondary
#48BE47
accent
#EB3D3E
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D1B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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