#8F1786#8F1786

#8F1786 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.191 H 331.7°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#8F1786
RGBrgb(143, 23, 134)
HSLhsl(305, 72%, 33%)
HSVhsv(305, 84%, 56%)
CMYKcmyk(0%, 83.9%, 6.3%, 43.9%)
CIE-LABlab(34.34, 58.71, -32.81)
CIE-LCHlch(34.34, 67.26, 330.81°)
OKLaboklab(45.95% 0.1683 -0.0905)
OKLCHoklch(45.95% 0.191 331.7)
XYZxyz(15.9372, 8.1750, 23.2882)
Luminance0.0817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1786 #178F20
analogous
#5C178F #8F1786 #8F174A
triadic
#8F1786 #868F17 #17868F
tetradic
#8F1786 #8F5C17 #178F20 #174A8F
square
#8F1786 #8F5C17 #178F20 #174A8F
split-complementary
#8F1786 #4A8F17 #178F5C
monochromatic
#260623 #5A0F55 #8F1786 #C41FB7 #E040D4

Accessibility & contrast

On white

7.97
#8F1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8F1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F1786
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1786#FFFFFF#000000##FFFFFF
##8F17861.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074689
Deuteranopia (green-blind)
#425683
Tritanopia (blue-blind)
#952850
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f1786;
/* rgb */ color: rgb(143, 23, 134);
/* oklch */ color: oklch(46.0% 0.191 331.7);
Tailwind
colors: {
  custom: {
    50: '#b466a9',
    500: '#8f1786',
    950: '#000000',
  },
}
SCSS
$custom: #8f1786;
$custom-light: #b466a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1786",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 304.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45953,
    "c": 0.19104,
    "h": 331.7
  },
  "luminance": 0.08174
}

Semantic roles & 50–950 ramp

primary
#8F1786
secondary
#41C14B
accent
#EF4639
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #8F1786

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

Preview Lab → · Contrast checker → · Palette generator →

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