#8F157F#8F157F

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

Color values

HEX#8F157F
RGBrgb(143, 21, 127)
HSLhsl(308, 74%, 32%)
HSVhsv(308, 85%, 56%)
CMYKcmyk(0%, 85.3%, 11.2%, 43.9%)
CIE-LABlab(33.79, 58.11, -29.31)
CIE-LCHlch(33.79, 65.09, 333.23°)
OKLaboklab(45.43% 0.1695 -0.0804)
OKLCHoklch(45.43% 0.188 334.6)
XYZxyz(15.4268, 7.9097, 20.7888)
Luminance0.0791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F157F #158F25
analogous
#62158F #8F157F #8F1542
triadic
#8F157F #7F8F15 #157F8F
tetradic
#8F157F #8F6215 #158F25 #15428F
square
#8F157F #8F6215 #158F25 #15428F
split-complementary
#8F157F #428F15 #158F62
monochromatic
#240520 #5A0D50 #8F157F #C41DAE #E23CCD

Accessibility & contrast

On white

8.13
#8F157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8F157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F157F
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F157F#FFFFFF#000000##FFFFFF
##8F157F1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124482
Deuteranopia (green-blind)
#45567C
Tritanopia (blue-blind)
#96234B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8f157f;
/* rgb */ color: rgb(143, 21, 127);
/* oklch */ color: oklch(45.4% 0.188 334.6);
Tailwind
colors: {
  custom: {
    50: '#b465a4',
    500: '#8f157f',
    950: '#000000',
  },
}
SCSS
$custom: #8f157f;
$custom-light: #b465a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f157f",
  "rgb": {
    "r": 143,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 307.869,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45434,
    "c": 0.18762,
    "h": 334.6
  },
  "luminance": 0.07908
}

Semantic roles & 50–950 ramp

primary
#8F157F
secondary
#3EC24F
accent
#F14F37
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12060F
muted
#817A7F

Preview Lab

Preview with #8F157F

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

Preview Lab → · Contrast checker → · Palette generator →

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