#8F187C#8F187C

#8F187C is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.183 H 336.0°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#8F187C
RGBrgb(143, 24, 124)
HSLhsl(310, 71%, 33%)
HSVhsv(310, 83%, 56%)
CMYKcmyk(0%, 83.2%, 13.3%, 43.9%)
CIE-LABlab(33.88, 56.96, -27.30)
CIE-LCHlch(33.88, 63.16, 334.39°)
OKLaboklab(45.44% 0.1673 -0.0746)
OKLCHoklch(45.44% 0.183 336)
XYZxyz(15.2927, 7.9496, 19.7939)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F187C #188F2B
analogous
#66188F #8F187C #8F1840
triadic
#8F187C #7C8F18 #187C8F
tetradic
#8F187C #8F6618 #188F2B #18408F
square
#8F187C #8F6618 #188F2B #18408F
split-complementary
#8F187C #408F18 #188F66
monochromatic
#260621 #5B0F4F #8F187C #C321A9 #DF42C6

Accessibility & contrast

On white

8.11
#8F187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F187C
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F187C#FFFFFF#000000##FFFFFF
##8F187C1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447F
Deuteranopia (green-blind)
#475679
Tritanopia (blue-blind)
#97234A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8f187c;
/* rgb */ color: rgb(143, 24, 124);
/* oklch */ color: oklch(45.4% 0.183 336.0);
Tailwind
colors: {
  custom: {
    50: '#b466a2',
    500: '#8f187c',
    950: '#000000',
  },
}
SCSS
$custom: #8f187c;
$custom-light: #b466a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f187c",
  "rgb": {
    "r": 143,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 309.58,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45441,
    "c": 0.18317,
    "h": 336
  },
  "luminance": 0.07948
}

Semantic roles & 50–950 ramp

primary
#8F187C
secondary
#43C057
accent
#EE573A
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #8F187C

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

Preview Lab → · Contrast checker → · Palette generator →

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