#8F158B#8F158B

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

Color values

HEX#8F158B
RGBrgb(143, 21, 139)
HSLhsl(302, 74%, 32%)
HSVhsv(302, 85%, 56%)
CMYKcmyk(0%, 85.3%, 2.8%, 43.9%)
CIE-LABlab(34.48, 59.95, -35.69)
CIE-LCHlch(34.48, 69.77, 329.24°)
OKLaboklab(46.14% 0.1695 -0.0988)
OKLCHoklch(46.14% 0.196 329.8)
XYZxyz(16.2560, 8.2414, 25.1557)
Luminance0.0824 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F158B #158F19
analogous
#56158F #8F158B #8F154E
triadic
#8F158B #8B8F15 #158B8F
tetradic
#8F158B #8F5615 #158F19 #154E8F
square
#8F158B #8F5615 #158F19 #154E8F
split-complementary
#8F158B #4E8F15 #158F56
monochromatic
#240523 #5A0D57 #8F158B #C41DBF #E23CDD

Accessibility & contrast

On white

7.93
#8F158B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F158B
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F158B#FFFFFF#000000##FFFFFF
##8F158B1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#3E5788
Tritanopia (blue-blind)
#942A52
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f158b;
/* rgb */ color: rgb(143, 21, 139);
/* oklch */ color: oklch(46.1% 0.196 329.8);
Tailwind
colors: {
  custom: {
    50: '#b465ad',
    500: '#8f158b',
    950: '#000000',
  },
}
SCSS
$custom: #8f158b;
$custom-light: #b465ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8f158b",
  "rgb": {
    "r": 143,
    "g": 21,
    "b": 139
  },
  "hsl": {
    "h": 301.967,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.46143,
    "c": 0.19617,
    "h": 329.8
  },
  "luminance": 0.0824
}

Semantic roles & 50–950 ramp

primary
#8F158B
secondary
#3EC242
accent
#F13D37
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #8F158B

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

Preview Lab → · Contrast checker → · Palette generator →

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