#8F1782#8F1782

#8F1782 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.188 H 333.4°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#8F1782
RGBrgb(143, 23, 130)
HSLhsl(307, 72%, 33%)
HSVhsv(307, 84%, 56%)
CMYKcmyk(0%, 83.9%, 9.1%, 43.9%)
CIE-LABlab(34.12, 58.10, -30.67)
CIE-LCHlch(34.12, 65.70, 332.17°)
OKLaboklab(45.72% 0.1682 -0.0843)
OKLCHoklch(45.72% 0.188 333.4)
XYZxyz(15.6635, 8.0655, 21.8466)
Luminance0.0806 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1782 #178F24
analogous
#60178F #8F1782 #8F1746
triadic
#8F1782 #828F17 #17828F
tetradic
#8F1782 #8F6017 #178F24 #17468F
square
#8F1782 #8F6017 #178F24 #17468F
split-complementary
#8F1782 #468F17 #178F60
monochromatic
#260622 #5A0F52 #8F1782 #C41FB2 #E040CF

Accessibility & contrast

On white

8.04
#8F1782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8F1782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F1782
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1782#FFFFFF#000000##FFFFFF
##8F17821.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104585
Deuteranopia (green-blind)
#44567F
Tritanopia (blue-blind)
#96264D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8f1782;
/* rgb */ color: rgb(143, 23, 130);
/* oklch */ color: oklch(45.7% 0.188 333.4);
Tailwind
colors: {
  custom: {
    50: '#b466a7',
    500: '#8f1782',
    950: '#000000',
  },
}
SCSS
$custom: #8f1782;
$custom-light: #b466a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1782",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 306.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45719,
    "c": 0.18818,
    "h": 333.4
  },
  "luminance": 0.08064
}

Semantic roles & 50–950 ramp

primary
#8F1782
secondary
#41C14F
accent
#EF4D39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #8F1782

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

Preview Lab → · Contrast checker → · Palette generator →

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