#8F177E#8F177E

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

Color values

HEX#8F177E
RGBrgb(143, 23, 126)
HSLhsl(309, 72%, 33%)
HSVhsv(309, 84%, 56%)
CMYKcmyk(0%, 83.9%, 11.9%, 43.9%)
CIE-LABlab(33.90, 57.50, -28.52)
CIE-LCHlch(33.90, 64.18, 333.62°)
OKLaboklab(45.49% 0.1681 -0.0781)
OKLCHoklch(45.49% 0.185 335.1)
XYZxyz(15.4002, 7.9602, 20.4600)
Luminance0.0796 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F177E #178F28
analogous
#64178F #8F177E #8F1742
triadic
#8F177E #7E8F17 #177E8F
tetradic
#8F177E #8F6417 #178F28 #17428F
square
#8F177E #8F6417 #178F28 #17428F
split-complementary
#8F177E #428F17 #178F64
monochromatic
#260621 #5A0F50 #8F177E #C41FAC #E040CA

Accessibility & contrast

On white

8.10
#8F177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F177E
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F177E#FFFFFF#000000##FFFFFF
##8F177E1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164581
Deuteranopia (green-blind)
#46567B
Tritanopia (blue-blind)
#96244B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8f177e;
/* rgb */ color: rgb(143, 23, 126);
/* oklch */ color: oklch(45.5% 0.185 335.1);
Tailwind
colors: {
  custom: {
    50: '#b465a4',
    500: '#8f177e',
    950: '#000000',
  },
}
SCSS
$custom: #8f177e;
$custom-light: #b465a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f177e",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 308.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45492,
    "c": 0.18537,
    "h": 335.1
  },
  "luminance": 0.07959
}

Semantic roles & 50–950 ramp

primary
#8F177E
secondary
#41C153
accent
#EF5339
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #8F177E

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

Preview Lab → · Contrast checker → · Palette generator →

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