#8F158E#8F158E

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

Color values

HEX#8F158E
RGBrgb(143, 21, 142)
HSLhsl(300, 74%, 32%)
HSVhsv(300, 85%, 56%)
CMYKcmyk(0%, 85.3%, 0.7%, 43.9%)
CIE-LABlab(34.66, 60.43, -37.25)
CIE-LCHlch(34.66, 70.99, 328.35°)
OKLaboklab(46.33% 0.1693 -0.1034)
OKLCHoklch(46.33% 0.198 328.6)
XYZxyz(16.4782, 8.3303, 26.3260)
Luminance0.0833 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F158E #158F16
analogous
#53158F #8F158E #8F1551
triadic
#8F158E #8E8F15 #158E8F
tetradic
#8F158E #8F5315 #158F16 #15518F
square
#8F158E #8F5315 #158F16 #15518F
split-complementary
#8F158E #518F15 #158F53
monochromatic
#240524 #5A0D59 #8F158E #C41DC3 #E23CE1

Accessibility & contrast

On white

7.88
#8F158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F158E
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F158E#FFFFFF#000000##FFFFFF
##8F158E1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#3C578B
Tritanopia (blue-blind)
#942C54
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f158e;
/* rgb */ color: rgb(143, 21, 142);
/* oklch */ color: oklch(46.3% 0.198 328.6);
Tailwind
colors: {
  custom: {
    50: '#b466af',
    500: '#8f158e',
    950: '#000000',
  },
}
SCSS
$custom: #8f158e;
$custom-light: #b466af;
$custom-dark: #000000;
JSON
{
  "hex": "#8f158e",
  "rgb": {
    "r": 143,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 300.492,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4633,
    "c": 0.19836,
    "h": 328.6
  },
  "luminance": 0.08329
}

Semantic roles & 50–950 ramp

primary
#8F158E
secondary
#3EC23F
accent
#F13837
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#120710
muted
#817A7F

Preview Lab

Preview with #8F158E

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

Preview Lab → · Contrast checker → · Palette generator →

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