#8F177B#8F177B

#8F177B is a mid, vivid pink. Relative luminance 0.079; OKLCH L 45.3% C 0.183 H 336.4°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#8F177B
RGBrgb(143, 23, 123)
HSLhsl(310, 72%, 33%)
HSVhsv(310, 84%, 56%)
CMYKcmyk(0%, 83.9%, 14%, 43.9%)
CIE-LABlab(33.74, 57.06, -26.89)
CIE-LCHlch(33.74, 63.08, 334.77°)
OKLaboklab(45.33% 0.168 -0.0734)
OKLCHoklch(45.33% 0.183 336.4)
XYZxyz(15.2095, 7.8840, 19.4558)
Luminance0.0788 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F177B #178F2B
analogous
#67178F #8F177B #8F173F
triadic
#8F177B #7B8F17 #177B8F
tetradic
#8F177B #8F6717 #178F2B #173F8F
square
#8F177B #8F6717 #178F2B #173F8F
split-complementary
#8F177B #3F8F17 #178F67
monochromatic
#260620 #5A0F4E #8F177B #C41FA8 #E040C6

Accessibility & contrast

On white

8.15
#8F177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8F177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F177B
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F177B#FFFFFF#000000##FFFFFF
##8F177B1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447E
Deuteranopia (green-blind)
#475678
Tritanopia (blue-blind)
#972249
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8f177b;
/* rgb */ color: rgb(143, 23, 123);
/* oklch */ color: oklch(45.3% 0.183 336.4);
Tailwind
colors: {
  custom: {
    50: '#b465a1',
    500: '#8f177b',
    950: '#000000',
  },
}
SCSS
$custom: #8f177b;
$custom-light: #b465a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f177b",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 310,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45326,
    "c": 0.1833,
    "h": 336.4
  },
  "luminance": 0.07882
}

Semantic roles & 50–950 ramp

primary
#8F177B
secondary
#41C156
accent
#EF5739
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#12060F
muted
#817A7E

Preview Lab

Preview with #8F177B

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

Preview Lab → · Contrast checker → · Palette generator →

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