#8F1781#8F1781

#8F1781 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.187 H 333.8°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#8F1781
RGBrgb(143, 23, 129)
HSLhsl(307, 72%, 33%)
HSVhsv(307, 84%, 56%)
CMYKcmyk(0%, 83.9%, 9.8%, 43.9%)
CIE-LABlab(34.06, 57.95, -30.14)
CIE-LCHlch(34.06, 65.32, 332.52°)
OKLaboklab(45.66% 0.1682 -0.0828)
OKLCHoklch(45.66% 0.187 333.8)
XYZxyz(15.5967, 8.0388, 21.4948)
Luminance0.0804 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1781 #178F25
analogous
#61178F #8F1781 #8F1745
triadic
#8F1781 #818F17 #17818F
tetradic
#8F1781 #8F6117 #178F25 #17458F
square
#8F1781 #8F6117 #178F25 #17458F
split-complementary
#8F1781 #458F17 #178F61
monochromatic
#260622 #5A0F51 #8F1781 #C41FB1 #E040CE

Accessibility & contrast

On white

8.05
#8F1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F1781
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1781#FFFFFF#000000##FFFFFF
##8F17811.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124584
Deuteranopia (green-blind)
#44567E
Tritanopia (blue-blind)
#96254D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8f1781;
/* rgb */ color: rgb(143, 23, 129);
/* oklch */ color: oklch(45.7% 0.187 333.8);
Tailwind
colors: {
  custom: {
    50: '#b466a6',
    500: '#8f1781',
    950: '#000000',
  },
}
SCSS
$custom: #8f1781;
$custom-light: #b466a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1781",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 307,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45662,
    "c": 0.18748,
    "h": 333.8
  },
  "luminance": 0.08037
}

Semantic roles & 50–950 ramp

primary
#8F1781
secondary
#41C150
accent
#EF4E39
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #8F1781

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

Preview Lab → · Contrast checker → · Palette generator →

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