#8F1780#8F1780

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

Color values

HEX#8F1780
RGBrgb(143, 23, 128)
HSLhsl(308, 72%, 33%)
HSVhsv(308, 84%, 56%)
CMYKcmyk(0%, 83.9%, 10.5%, 43.9%)
CIE-LABlab(34.01, 57.80, -29.60)
CIE-LCHlch(34.01, 64.93, 332.88°)
OKLaboklab(45.61% 0.1682 -0.0812)
OKLCHoklch(45.61% 0.187 334.2)
XYZxyz(15.5306, 8.0124, 21.1465)
Luminance0.0801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1780 #178F26
analogous
#62178F #8F1780 #8F1744
triadic
#8F1780 #808F17 #17808F
tetradic
#8F1780 #8F6217 #178F26 #17448F
square
#8F1780 #8F6217 #178F26 #17448F
split-complementary
#8F1780 #448F17 #178F62
monochromatic
#260622 #5A0F51 #8F1780 #C41FAF #E040CC

Accessibility & contrast

On white

8.07
#8F1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8F1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F1780
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1780#FFFFFF#000000##FFFFFF
##8F17801.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134583
Deuteranopia (green-blind)
#45567D
Tritanopia (blue-blind)
#96254C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8f1780;
/* rgb */ color: rgb(143, 23, 128);
/* oklch */ color: oklch(45.6% 0.187 334.2);
Tailwind
colors: {
  custom: {
    50: '#b466a5',
    500: '#8f1780',
    950: '#000000',
  },
}
SCSS
$custom: #8f1780;
$custom-light: #b466a5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1780",
  "rgb": {
    "r": 143,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 307.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45605,
    "c": 0.18677,
    "h": 334.2
  },
  "luminance": 0.08011
}

Semantic roles & 50–950 ramp

primary
#8F1780
secondary
#41C151
accent
#EF5039
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #8F1780

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

Preview Lab → · Contrast checker → · Palette generator →

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