#8F157A#8F157A

#8F157A is a mid, vivid pink. Relative luminance 0.078; OKLCH L 45.2% C 0.184 H 336.8°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#8F157A
RGBrgb(143, 21, 122)
HSLhsl(310, 74%, 32%)
HSVhsv(310, 85%, 56%)
CMYKcmyk(0%, 85.3%, 14.7%, 43.9%)
CIE-LABlab(33.53, 57.38, -26.60)
CIE-LCHlch(33.53, 63.25, 335.13°)
OKLaboklab(45.16% 0.1693 -0.0726)
OKLCHoklch(45.16% 0.184 336.8)
XYZxyz(15.1090, 7.7826, 19.1151)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F157A #158F2A
analogous
#67158F #8F157A #8F153D
triadic
#8F157A #7A8F15 #157A8F
tetradic
#8F157A #8F6715 #158F2A #153D8F
square
#8F157A #8F6715 #158F2A #153D8F
split-complementary
#8F157A #3D8F15 #158F67
monochromatic
#24051F #5A0D4C #8F157A #C41DA8 #E23CC6

Accessibility & contrast

On white

8.22
#8F157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8F157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F157A
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F157A#FFFFFF#000000##FFFFFF
##8F157A1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19437C
Deuteranopia (green-blind)
#475577
Tritanopia (blue-blind)
#972048
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8f157a;
/* rgb */ color: rgb(143, 21, 122);
/* oklch */ color: oklch(45.2% 0.184 336.8);
Tailwind
colors: {
  custom: {
    50: '#b465a1',
    500: '#8f157a',
    950: '#000000',
  },
}
SCSS
$custom: #8f157a;
$custom-light: #b465a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f157a",
  "rgb": {
    "r": 143,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 310.328,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45156,
    "c": 0.18419,
    "h": 336.8
  },
  "luminance": 0.07781
}

Semantic roles & 50–950 ramp

primary
#8F157A
secondary
#3EC255
accent
#F15737
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#12060F
muted
#817A7E

Preview Lab

Preview with #8F157A

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

Preview Lab → · Contrast checker → · Palette generator →

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