#8F1F7A#8F1F7A

#8F1F7A is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.8% C 0.175 H 337.0°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#8F1F7A
RGBrgb(143, 31, 122)
HSLhsl(311, 64%, 34%)
HSVhsv(311, 78%, 56%)
CMYKcmyk(0%, 78.3%, 14.7%, 43.9%)
CIE-LABlab(34.45, 54.72, -25.15)
CIE-LCHlch(34.45, 60.22, 335.32°)
OKLaboklab(45.82% 0.1613 -0.0685)
OKLCHoklch(45.82% 0.175 337)
XYZxyz(15.3308, 8.2262, 19.1890)
Luminance0.0823 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1F7A #1F8F34
analogous
#6C1F8F #8F1F7A #8F1F42
triadic
#8F1F7A #7A8F1F #1F7A8F
tetradic
#8F1F7A #8F6C1F #1F8F34 #1F428F
square
#8F1F7A #8F6C1F #1F8F34 #1F428F
split-complementary
#8F1F7A #428F1F #1F8F6C
monochromatic
#2A0924 #5D144F #8F1F7A #C12AA5 #D94FBF

Accessibility & contrast

On white

7.94
#8F1F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8F1F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F1F7A
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1F7A#FFFFFF#000000##FFFFFF
##8F1F7A1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22467C
Deuteranopia (green-blind)
#4A5777
Tritanopia (blue-blind)
#97274B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f1f7a;
/* rgb */ color: rgb(143, 31, 122);
/* oklch */ color: oklch(45.8% 0.175 337.0);
Tailwind
colors: {
  custom: {
    50: '#b368a0',
    500: '#8f1f7a',
    950: '#000000',
  },
}
SCSS
$custom: #8f1f7a;
$custom-light: #b368a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1f7a",
  "rgb": {
    "r": 143,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 311.25,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45818,
    "c": 0.17525,
    "h": 337
  },
  "luminance": 0.08225
}

Semantic roles & 50–950 ramp

primary
#8F1F7A
secondary
#4EBC63
accent
#E76040
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8F1F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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