#8D1F7C#8D1F7C

#8D1F7C is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.176 H 335.3°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#8D1F7C
RGBrgb(141, 31, 124)
HSLhsl(309, 64%, 34%)
HSVhsv(309, 78%, 55%)
CMYKcmyk(0%, 78%, 12.1%, 44.7%)
CIE-LABlab(34.19, 54.55, -26.84)
CIE-LCHlch(34.19, 60.79, 333.80°)
OKLaboklab(45.6% 0.1595 -0.0733)
OKLCHoklch(45.6% 0.176 335.3)
XYZxyz(15.1128, 8.0993, 19.8323)
Luminance0.0810 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F7C #1F8D30
analogous
#671F8D #8D1F7C #8D1F45
triadic
#8D1F7C #7C8D1F #1F7C8D
tetradic
#8D1F7C #8D671F #1F8D30 #1F458D
square
#8D1F7C #8D671F #1F8D30 #1F458D
split-complementary
#8D1F7C #458D1F #1F8D67
monochromatic
#290924 #5B1450 #8D1F7C #BF2AA8 #D84EC3

Accessibility & contrast

On white

8.02
#8D1F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8D1F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F7C
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F7C#FFFFFF#000000##FFFFFF
##8D1F7C1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F467E
Deuteranopia (green-blind)
#475679
Tritanopia (blue-blind)
#94284C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d1f7c;
/* rgb */ color: rgb(141, 31, 124);
/* oklch */ color: oklch(45.6% 0.176 335.3);
Tailwind
colors: {
  custom: {
    50: '#b268a2',
    500: '#8d1f7c',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f7c;
$custom-light: #b268a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f7c",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 309.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45596,
    "c": 0.17553,
    "h": 335.3
  },
  "luminance": 0.08098
}

Semantic roles & 50–950 ramp

primary
#8D1F7C
secondary
#4DBB5E
accent
#E75B41
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D1F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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