#8F158D#8F158D

#8F158D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.3% C 0.198 H 329.0°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#8F158D
RGBrgb(143, 21, 141)
HSLhsl(301, 74%, 32%)
HSVhsv(301, 85%, 56%)
CMYKcmyk(0%, 85.3%, 1.4%, 43.9%)
CIE-LABlab(34.60, 60.27, -36.73)
CIE-LCHlch(34.60, 70.58, 328.64°)
OKLaboklab(46.27% 0.1694 -0.1019)
OKLCHoklch(46.27% 0.198 329)
XYZxyz(16.4034, 8.3004, 25.9323)
Luminance0.0830 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F158D #158F17
analogous
#54158F #8F158D #8F1550
triadic
#8F158D #8D8F15 #158D8F
tetradic
#8F158D #8F5415 #158F17 #15508F
square
#8F158D #8F5415 #158F17 #15508F
split-complementary
#8F158D #508F15 #158F54
monochromatic
#240524 #5A0D58 #8F158D #C41DC2 #E23CE0

Accessibility & contrast

On white

7.90
#8F158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8F158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F158D
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F158D#FFFFFF#000000##FFFFFF
##8F158D1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#3D578A
Tritanopia (blue-blind)
#942C53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f158d;
/* rgb */ color: rgb(143, 21, 141);
/* oklch */ color: oklch(46.3% 0.198 329.0);
Tailwind
colors: {
  custom: {
    50: '#b466af',
    500: '#8f158d',
    950: '#000000',
  },
}
SCSS
$custom: #8f158d;
$custom-light: #b466af;
$custom-dark: #000000;
JSON
{
  "hex": "#8f158d",
  "rgb": {
    "r": 143,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 300.984,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.46267,
    "c": 0.19763,
    "h": 329
  },
  "luminance": 0.08299
}

Semantic roles & 50–950 ramp

primary
#8F158D
secondary
#3EC240
accent
#F13A37
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #8F158D

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

Preview Lab → · Contrast checker → · Palette generator →

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