#8F177F#8F177F

#8F177F is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.186 H 334.7°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#8F177F
RGBrgb(143, 23, 127)
HSLhsl(308, 72%, 33%)
HSVhsv(308, 84%, 56%)
CMYKcmyk(0%, 83.9%, 11.2%, 43.9%)
CIE-LABlab(33.95, 57.65, -29.06)
CIE-LCHlch(33.95, 64.56, 333.25°)
OKLaboklab(45.55% 0.1682 -0.0796)
OKLCHoklch(45.55% 0.186 334.7)
XYZxyz(15.4651, 7.9862, 20.8016)
Luminance0.0799 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F177F #178F27
analogous
#63178F #8F177F #8F1743
triadic
#8F177F #7F8F17 #177F8F
tetradic
#8F177F #8F6317 #178F27 #17438F
square
#8F177F #8F6317 #178F27 #17438F
split-complementary
#8F177F #438F17 #178F63
monochromatic
#260621 #5A0F50 #8F177F #C41FAE #E040CB

Accessibility & contrast

On white

8.09
#8F177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8F177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F177F
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F177F#FFFFFF#000000##FFFFFF
##8F177F1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154582
Deuteranopia (green-blind)
#45567C
Tritanopia (blue-blind)
#96244C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8f177f;
/* rgb */ color: rgb(143, 23, 127);
/* oklch */ color: oklch(45.5% 0.186 334.7);
Tailwind
colors: {
  custom: {
    50: '#b465a4',
    500: '#8f177f',
    950: '#000000',
  },
}
SCSS
$custom: #8f177f;
$custom-light: #b465a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f177f",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 308,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45548,
    "c": 0.18607,
    "h": 334.7
  },
  "luminance": 0.07985
}

Semantic roles & 50–950 ramp

primary
#8F177F
secondary
#41C152
accent
#EF5139
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #8F177F

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

Preview Lab → · Contrast checker → · Palette generator →

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