#8F1F7D#8F1F7D

#8F1F7D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.177 H 335.6°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#8F1F7D
RGBrgb(143, 31, 125)
HSLhsl(310, 64%, 34%)
HSVhsv(310, 78%, 56%)
CMYKcmyk(0%, 78.3%, 12.6%, 43.9%)
CIE-LABlab(34.60, 55.17, -26.79)
CIE-LCHlch(34.60, 61.33, 334.10°)
OKLaboklab(45.98% 0.1616 -0.0732)
OKLCHoklch(45.98% 0.177 335.6)
XYZxyz(15.5196, 8.3017, 20.1831)
Luminance0.0830 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1F7D #1F8F31
analogous
#691F8F #8F1F7D #8F1F45
triadic
#8F1F7D #7D8F1F #1F7D8F
tetradic
#8F1F7D #8F691F #1F8F31 #1F458F
square
#8F1F7D #8F691F #1F8F31 #1F458F
split-complementary
#8F1F7D #458F1F #1F8F69
monochromatic
#2A0925 #5D1451 #8F1F7D #C12AA9 #D94FC3

Accessibility & contrast

On white

7.89
#8F1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8F1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F1F7D
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1F7D#FFFFFF#000000##FFFFFF
##8F1F7D1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20477F
Deuteranopia (green-blind)
#49577A
Tritanopia (blue-blind)
#96284C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f1f7d;
/* rgb */ color: rgb(143, 31, 125);
/* oklch */ color: oklch(46.0% 0.177 335.6);
Tailwind
colors: {
  custom: {
    50: '#b368a3',
    500: '#8f1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #8f1f7d;
$custom-light: #b368a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1f7d",
  "rgb": {
    "r": 143,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 309.643,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45979,
    "c": 0.17738,
    "h": 335.6
  },
  "luminance": 0.083
}

Semantic roles & 50–950 ramp

primary
#8F1F7D
secondary
#4EBC60
accent
#E75B40
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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