#8F177D#8F177D

#8F177D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.185 H 335.5°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#8F177D
RGBrgb(143, 23, 125)
HSLhsl(309, 72%, 33%)
HSVhsv(309, 84%, 56%)
CMYKcmyk(0%, 83.9%, 12.6%, 43.9%)
CIE-LABlab(33.85, 57.35, -27.98)
CIE-LCHlch(33.85, 63.81, 333.99°)
OKLaboklab(45.44% 0.1681 -0.0765)
OKLCHoklch(45.44% 0.185 335.5)
XYZxyz(15.3360, 7.9345, 20.1219)
Luminance0.0793 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F177D #178F29
analogous
#65178F #8F177D #8F1741
triadic
#8F177D #7D8F17 #177D8F
tetradic
#8F177D #8F6517 #178F29 #17418F
square
#8F177D #8F6517 #178F29 #17418F
split-complementary
#8F177D #418F17 #178F65
monochromatic
#260621 #5A0F4F #8F177D #C41FAB #E040C8

Accessibility & contrast

On white

8.12
#8F177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8F177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F177D
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F177D#FFFFFF#000000##FFFFFF
##8F177D1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174480
Deuteranopia (green-blind)
#46567A
Tritanopia (blue-blind)
#97234B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8f177d;
/* rgb */ color: rgb(143, 23, 125);
/* oklch */ color: oklch(45.4% 0.185 335.5);
Tailwind
colors: {
  custom: {
    50: '#b465a3',
    500: '#8f177d',
    950: '#000000',
  },
}
SCSS
$custom: #8f177d;
$custom-light: #b465a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f177d",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 309,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45436,
    "c": 0.18467,
    "h": 335.5
  },
  "luminance": 0.07933
}

Semantic roles & 50–950 ramp

primary
#8F177D
secondary
#41C154
accent
#EF5439
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #8F177D

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

Preview Lab → · Contrast checker → · Palette generator →

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