#8F1F7C#8F1F7C

#8F1F7C is a mid, vivid pink. Relative luminance 0.083; OKLCH L 45.9% C 0.177 H 336.1°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#8F1F7C
RGBrgb(143, 31, 124)
HSLhsl(310, 64%, 34%)
HSVhsv(310, 78%, 56%)
CMYKcmyk(0%, 78.3%, 13.3%, 43.9%)
CIE-LABlab(34.55, 55.02, -26.24)
CIE-LCHlch(34.55, 60.95, 334.50°)
OKLaboklab(45.93% 0.1615 -0.0716)
OKLCHoklch(45.93% 0.177 336.1)
XYZxyz(15.4560, 8.2763, 19.8483)
Luminance0.0828 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1F7C #1F8F32
analogous
#6A1F8F #8F1F7C #8F1F44
triadic
#8F1F7C #7C8F1F #1F7C8F
tetradic
#8F1F7C #8F6A1F #1F8F32 #1F448F
square
#8F1F7C #8F6A1F #1F8F32 #1F448F
split-complementary
#8F1F7C #448F1F #1F8F6A
monochromatic
#2A0925 #5D1450 #8F1F7C #C12AA8 #D94FC2

Accessibility & contrast

On white

7.91
#8F1F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F1F7C
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1F7C#FFFFFF#000000##FFFFFF
##8F1F7C1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477E
Deuteranopia (green-blind)
#495779
Tritanopia (blue-blind)
#97284C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f1f7c;
/* rgb */ color: rgb(143, 31, 124);
/* oklch */ color: oklch(45.9% 0.177 336.1);
Tailwind
colors: {
  custom: {
    50: '#b368a2',
    500: '#8f1f7c',
    950: '#000000',
  },
}
SCSS
$custom: #8f1f7c;
$custom-light: #b368a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1f7c",
  "rgb": {
    "r": 143,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 310.179,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45925,
    "c": 0.17666,
    "h": 336.1
  },
  "luminance": 0.08275
}

Semantic roles & 50–950 ramp

primary
#8F1F7C
secondary
#4EBC61
accent
#E75D40
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F1F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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