#8F158A#8F158A

#8F158A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.1% C 0.195 H 330.1°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#8F158A
RGBrgb(143, 21, 138)
HSLhsl(302, 74%, 32%)
HSVhsv(302, 85%, 56%)
CMYKcmyk(0%, 85.3%, 3.5%, 43.9%)
CIE-LABlab(34.42, 59.79, -35.16)
CIE-LCHlch(34.42, 69.37, 329.54°)
OKLaboklab(46.08% 0.1695 -0.0973)
OKLCHoklch(46.08% 0.195 330.1)
XYZxyz(16.1832, 8.2123, 24.7726)
Luminance0.0821 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F158A #158F1A
analogous
#57158F #8F158A #8F154D
triadic
#8F158A #8A8F15 #158A8F
tetradic
#8F158A #8F5715 #158F1A #154D8F
square
#8F158A #8F5715 #158F1A #154D8F
split-complementary
#8F158A #4D8F15 #158F57
monochromatic
#240523 #5A0D57 #8F158A #C41DBD #E23CDC

Accessibility & contrast

On white

7.95
#8F158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8F158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F158A
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F158A#FFFFFF#000000##FFFFFF
##8F158A1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478D
Deuteranopia (green-blind)
#3F5687
Tritanopia (blue-blind)
#952A52
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f158a;
/* rgb */ color: rgb(143, 21, 138);
/* oklch */ color: oklch(46.1% 0.195 330.1);
Tailwind
colors: {
  custom: {
    50: '#b465ac',
    500: '#8f158a',
    950: '#000000',
  },
}
SCSS
$custom: #8f158a;
$custom-light: #b465ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8f158a",
  "rgb": {
    "r": 143,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 302.459,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.46082,
    "c": 0.19544,
    "h": 330.1
  },
  "luminance": 0.08211
}

Semantic roles & 50–950 ramp

primary
#8F158A
secondary
#3EC243
accent
#F13E37
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #8F158A

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

Preview Lab → · Contrast checker → · Palette generator →

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