#8F157C#8F157C

#8F157C is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.186 H 335.9°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#8F157C
RGBrgb(143, 21, 124)
HSLhsl(309, 74%, 32%)
HSVhsv(309, 85%, 56%)
CMYKcmyk(0%, 85.3%, 13.3%, 43.9%)
CIE-LABlab(33.63, 57.67, -27.69)
CIE-LCHlch(33.63, 63.97, 334.35°)
OKLaboklab(45.27% 0.1694 -0.0757)
OKLCHoklch(45.27% 0.186 335.9)
XYZxyz(15.2342, 7.8327, 19.7744)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F157C #158F28
analogous
#65158F #8F157C #8F153F
triadic
#8F157C #7C8F15 #157C8F
tetradic
#8F157C #8F6515 #158F28 #153F8F
square
#8F157C #8F6515 #158F28 #153F8F
split-complementary
#8F157C #3F8F15 #158F65
monochromatic
#24051F #5A0D4E #8F157C #C41DAA #E23CC8

Accessibility & contrast

On white

8.18
#8F157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8F157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F157C
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F157C#FFFFFF#000000##FFFFFF
##8F157C1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17447F
Deuteranopia (green-blind)
#465579
Tritanopia (blue-blind)
#97214A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8f157c;
/* rgb */ color: rgb(143, 21, 124);
/* oklch */ color: oklch(45.3% 0.186 335.9);
Tailwind
colors: {
  custom: {
    50: '#b465a2',
    500: '#8f157c',
    950: '#000000',
  },
}
SCSS
$custom: #8f157c;
$custom-light: #b465a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f157c",
  "rgb": {
    "r": 143,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 309.344,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45266,
    "c": 0.18555,
    "h": 335.9
  },
  "luminance": 0.07831
}

Semantic roles & 50–950 ramp

primary
#8F157C
secondary
#3EC252
accent
#F15437
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#12060F
muted
#817A7F

Preview Lab

Preview with #8F157C

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

Preview Lab → · Contrast checker → · Palette generator →

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