#8F157B#8F157B

#8F157B is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.185 H 336.4°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#8F157B
RGBrgb(143, 21, 123)
HSLhsl(310, 74%, 32%)
HSVhsv(310, 85%, 56%)
CMYKcmyk(0%, 85.3%, 14%, 43.9%)
CIE-LABlab(33.58, 57.52, -27.14)
CIE-LCHlch(33.58, 63.61, 334.74°)
OKLaboklab(45.21% 0.1694 -0.0741)
OKLCHoklch(45.21% 0.185 336.4)
XYZxyz(15.1713, 7.8075, 19.4430)
Luminance0.0781 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F157B #158F29
analogous
#66158F #8F157B #8F153E
triadic
#8F157B #7B8F15 #157B8F
tetradic
#8F157B #8F6615 #158F29 #153E8F
square
#8F157B #8F6615 #158F29 #153E8F
split-complementary
#8F157B #3E8F15 #158F66
monochromatic
#24051F #5A0D4D #8F157B #C41DA9 #E23CC7

Accessibility & contrast

On white

8.20
#8F157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8F157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F157B
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F157B#FFFFFF#000000##FFFFFF
##8F157B1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18447E
Deuteranopia (green-blind)
#475578
Tritanopia (blue-blind)
#972049
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8f157b;
/* rgb */ color: rgb(143, 21, 123);
/* oklch */ color: oklch(45.2% 0.185 336.4);
Tailwind
colors: {
  custom: {
    50: '#b465a1',
    500: '#8f157b',
    950: '#000000',
  },
}
SCSS
$custom: #8f157b;
$custom-light: #b465a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f157b",
  "rgb": {
    "r": 143,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 309.836,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45211,
    "c": 0.18487,
    "h": 336.4
  },
  "luminance": 0.07806
}

Semantic roles & 50–950 ramp

primary
#8F157B
secondary
#3EC253
accent
#F15537
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#12060F
muted
#817A7E

Preview Lab

Preview with #8F157B

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

Preview Lab → · Contrast checker → · Palette generator →

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