#8F1D7A#8F1D7A

#8F1D7A is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.7% C 0.177 H 337.0°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#8F1D7A
RGBrgb(143, 29, 122)
HSLhsl(311, 66%, 34%)
HSVhsv(311, 80%, 56%)
CMYKcmyk(0%, 79.7%, 14.7%, 43.9%)
CIE-LABlab(34.24, 55.31, -25.47)
CIE-LCHlch(34.24, 60.90, 335.27°)
OKLaboklab(45.67% 0.1631 -0.0694)
OKLCHoklch(45.67% 0.177 337)
XYZxyz(15.2802, 8.1250, 19.1721)
Luminance0.0812 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1D7A #1D8F32
analogous
#6B1D8F #8F1D7A #8F1D41
triadic
#8F1D7A #7A8F1D #1D7A8F
tetradic
#8F1D7A #8F6B1D #1D8F32 #1D418F
square
#8F1D7A #8F6B1D #1D8F32 #1D418F
split-complementary
#8F1D7A #418F1D #1D8F6B
monochromatic
#290823 #5C134F #8F1D7A #C227A5 #DB4CC0

Accessibility & contrast

On white

8.00
#8F1D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F1D7A
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1D7A#FFFFFF#000000##FFFFFF
##8F1D7A1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21467C
Deuteranopia (green-blind)
#495777
Tritanopia (blue-blind)
#97254A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8f1d7a;
/* rgb */ color: rgb(143, 29, 122);
/* oklch */ color: oklch(45.7% 0.177 337.0);
Tailwind
colors: {
  custom: {
    50: '#b467a0',
    500: '#8f1d7a',
    950: '#000000',
  },
}
SCSS
$custom: #8f1d7a;
$custom-light: #b467a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1d7a",
  "rgb": {
    "r": 143,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 311.053,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45669,
    "c": 0.17726,
    "h": 337
  },
  "luminance": 0.08124
}

Semantic roles & 50–950 ramp

primary
#8F1D7A
secondary
#4BBD60
accent
#E95E3F
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8F1D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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