#8F157E#8F157E

#8F157E is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.187 H 335.1°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#8F157E
RGBrgb(143, 21, 126)
HSLhsl(308, 74%, 32%)
HSVhsv(308, 85%, 56%)
CMYKcmyk(0%, 85.3%, 11.9%, 43.9%)
CIE-LABlab(33.74, 57.96, -28.77)
CIE-LCHlch(33.74, 64.71, 333.60°)
OKLaboklab(45.38% 0.1695 -0.0788)
OKLCHoklch(45.38% 0.187 335.1)
XYZxyz(15.3620, 7.8838, 20.4473)
Luminance0.0788 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F157E #158F26
analogous
#63158F #8F157E #8F1541
triadic
#8F157E #7E8F15 #157E8F
tetradic
#8F157E #8F6315 #158F26 #15418F
square
#8F157E #8F6315 #158F26 #15418F
split-complementary
#8F157E #418F15 #158F63
monochromatic
#240520 #5A0D4F #8F157E #C41DAD #E23CCB

Accessibility & contrast

On white

8.15
#8F157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8F157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F157E
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F157E#FFFFFF#000000##FFFFFF
##8F157E1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144481
Deuteranopia (green-blind)
#45557B
Tritanopia (blue-blind)
#96224B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8f157e;
/* rgb */ color: rgb(143, 21, 126);
/* oklch */ color: oklch(45.4% 0.187 335.1);
Tailwind
colors: {
  custom: {
    50: '#b465a4',
    500: '#8f157e',
    950: '#000000',
  },
}
SCSS
$custom: #8f157e;
$custom-light: #b465a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f157e",
  "rgb": {
    "r": 143,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 308.361,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45378,
    "c": 0.18693,
    "h": 335.1
  },
  "luminance": 0.07882
}

Semantic roles & 50–950 ramp

primary
#8F157E
secondary
#3EC250
accent
#F15137
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12060F
muted
#817A7F

Preview Lab

Preview with #8F157E

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

Preview Lab → · Contrast checker → · Palette generator →

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