#8D1F7B#8D1F7B

#8D1F7B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.175 H 335.8°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#8D1F7B
RGBrgb(141, 31, 123)
HSLhsl(310, 64%, 34%)
HSVhsv(310, 78%, 55%)
CMYKcmyk(0%, 78%, 12.8%, 44.7%)
CIE-LABlab(34.14, 54.39, -26.29)
CIE-LCHlch(34.14, 60.42, 334.20°)
OKLaboklab(45.54% 0.1594 -0.0718)
OKLCHoklch(45.54% 0.175 335.8)
XYZxyz(15.0499, 8.0741, 19.5009)
Luminance0.0807 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F7B #1F8D31
analogous
#681F8D #8D1F7B #8D1F44
triadic
#8D1F7B #7B8D1F #1F7B8D
tetradic
#8D1F7B #8D681F #1F8D31 #1F448D
square
#8D1F7B #8D681F #1F8D31 #1F448D
split-complementary
#8D1F7B #448D1F #1F8D68
monochromatic
#290923 #5B144F #8D1F7B #BF2AA7 #D84EC2

Accessibility & contrast

On white

8.03
#8D1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8D1F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F7B
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F7B#FFFFFF#000000##FFFFFF
##8D1F7B1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20467D
Deuteranopia (green-blind)
#485678
Tritanopia (blue-blind)
#94284B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d1f7b;
/* rgb */ color: rgb(141, 31, 123);
/* oklch */ color: oklch(45.5% 0.175 335.8);
Tailwind
colors: {
  custom: {
    50: '#b268a1',
    500: '#8d1f7b',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f7b;
$custom-light: #b268a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f7b",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 309.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45542,
    "c": 0.17481,
    "h": 335.8
  },
  "luminance": 0.08073
}

Semantic roles & 50–950 ramp

primary
#8D1F7B
secondary
#4DBB5F
accent
#E75C41
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8D1F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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