#8F157D#8F157D

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

Color values

HEX#8F157D
RGBrgb(143, 21, 125)
HSLhsl(309, 74%, 32%)
HSVhsv(309, 85%, 56%)
CMYKcmyk(0%, 85.3%, 12.6%, 43.9%)
CIE-LABlab(33.69, 57.82, -28.23)
CIE-LCHlch(33.69, 64.34, 333.97°)
OKLaboklab(45.32% 0.1695 -0.0772)
OKLCHoklch(45.32% 0.186 335.5)
XYZxyz(15.2978, 7.8581, 20.1092)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F157D #158F27
analogous
#64158F #8F157D #8F1540
triadic
#8F157D #7D8F15 #157D8F
tetradic
#8F157D #8F6415 #158F27 #15408F
square
#8F157D #8F6415 #158F27 #15408F
split-complementary
#8F157D #408F15 #158F64
monochromatic
#240520 #5A0D4E #8F157D #C41DAC #E23CCA

Accessibility & contrast

On white

8.17
#8F157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F157D
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F157D#FFFFFF#000000##FFFFFF
##8F157D1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154480
Deuteranopia (green-blind)
#46557A
Tritanopia (blue-blind)
#97224A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8f157d;
/* rgb */ color: rgb(143, 21, 125);
/* oklch */ color: oklch(45.3% 0.186 335.5);
Tailwind
colors: {
  custom: {
    50: '#b465a3',
    500: '#8f157d',
    950: '#000000',
  },
}
SCSS
$custom: #8f157d;
$custom-light: #b465a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f157d",
  "rgb": {
    "r": 143,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 308.852,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45321,
    "c": 0.18624,
    "h": 335.5
  },
  "luminance": 0.07857
}

Semantic roles & 50–950 ramp

primary
#8F157D
secondary
#3EC251
accent
#F15237
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12060F
muted
#817A7F

Preview Lab

Preview with #8F157D

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

Preview Lab → · Contrast checker → · Palette generator →

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