#8F158F#8F158F

#8F158F is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.4% C 0.199 H 328.2°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#8F158F
RGBrgb(143, 21, 143)
HSLhsl(300, 74%, 32%)
HSVhsv(300, 85%, 56%)
CMYKcmyk(0%, 85.3%, 0%, 43.9%)
CIE-LABlab(34.72, 60.59, -37.77)
CIE-LCHlch(34.72, 71.40, 328.07°)
OKLaboklab(46.39% 0.1692 -0.1049)
OKLCHoklch(46.39% 0.199 328.2)
XYZxyz(16.5536, 8.3604, 26.7231)
Luminance0.0836 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F158F #158F15
analogous
#52158F #8F158F #8F1552
triadic
#8F158F #8F8F15 #158F8F
tetradic
#8F158F #8F5215 #158F15 #15528F
square
#8F158F #8F5215 #158F15 #15528F
split-complementary
#8F158F #528F15 #158F52
monochromatic
#240524 #5A0D5A #8F158F #C41DC4 #E23CE2

Accessibility & contrast

On white

7.86
#8F158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8F158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F158F
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F158F#FFFFFF#000000##FFFFFF
##8F158F1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#3C578C
Tritanopia (blue-blind)
#942D55
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8f158f;
/* rgb */ color: rgb(143, 21, 143);
/* oklch */ color: oklch(46.4% 0.199 328.2);
Tailwind
colors: {
  custom: {
    50: '#b466b0',
    500: '#8f158f',
    950: '#000000',
  },
}
SCSS
$custom: #8f158f;
$custom-light: #b466b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f158f",
  "rgb": {
    "r": 143,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 300,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.46392,
    "c": 0.1991,
    "h": 328.2
  },
  "luminance": 0.08359
}

Semantic roles & 50–950 ramp

primary
#8F158F
secondary
#3EC23E
accent
#F13737
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#120710
muted
#817A7F

Preview Lab

Preview with #8F158F

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

Preview Lab → · Contrast checker → · Palette generator →

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