#8F158C#8F158C

#8F158C is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.197 H 329.4°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#8F158C
RGBrgb(143, 21, 140)
HSLhsl(301, 74%, 32%)
HSVhsv(301, 85%, 56%)
CMYKcmyk(0%, 85.3%, 2.1%, 43.9%)
CIE-LABlab(34.54, 60.11, -36.21)
CIE-LCHlch(34.54, 70.18, 328.94°)
OKLaboklab(46.21% 0.1694 -0.1003)
OKLCHoklch(46.21% 0.197 329.4)
XYZxyz(16.3294, 8.2707, 25.5422)
Luminance0.0827 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F158C #158F18
analogous
#55158F #8F158C #8F154F
triadic
#8F158C #8C8F15 #158C8F
tetradic
#8F158C #8F5515 #158F18 #154F8F
square
#8F158C #8F5515 #158F18 #154F8F
split-complementary
#8F158C #4F8F15 #158F55
monochromatic
#240524 #5A0D58 #8F158C #C41DC0 #E23CDE

Accessibility & contrast

On white

7.91
#8F158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8F158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F158C
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F158C#FFFFFF#000000##FFFFFF
##8F158C1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#3E5789
Tritanopia (blue-blind)
#942B53
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f158c;
/* rgb */ color: rgb(143, 21, 140);
/* oklch */ color: oklch(46.2% 0.197 329.4);
Tailwind
colors: {
  custom: {
    50: '#b466ae',
    500: '#8f158c',
    950: '#000000',
  },
}
SCSS
$custom: #8f158c;
$custom-light: #b466ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8f158c",
  "rgb": {
    "r": 143,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 301.475,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.46205,
    "c": 0.1969,
    "h": 329.4
  },
  "luminance": 0.08269
}

Semantic roles & 50–950 ramp

primary
#8F158C
secondary
#3EC241
accent
#F13B37
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #8F158C

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

Preview Lab → · Contrast checker → · Palette generator →

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