#8F1A7E#8F1A7E

#8F1A7E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.183 H 335.1°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#8F1A7E
RGBrgb(143, 26, 126)
HSLhsl(309, 69%, 33%)
HSVhsv(309, 82%, 56%)
CMYKcmyk(0%, 81.8%, 11.9%, 43.9%)
CIE-LABlab(34.16, 56.74, -28.11)
CIE-LCHlch(34.16, 63.32, 333.65°)
OKLaboklab(45.68% 0.1659 -0.0769)
OKLCHoklch(45.68% 0.183 335.1)
XYZxyz(15.4632, 8.0862, 20.4810)
Luminance0.0809 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1A7E #1A8F2B
analogous
#651A8F #8F1A7E #8F1A43
triadic
#8F1A7E #7E8F1A #1A7E8F
tetradic
#8F1A7E #8F651A #1A8F2B #1A438F
square
#8F1A7E #8F651A #1A8F2B #1A438F
split-complementary
#8F1A7E #438F1A #1A8F65
monochromatic
#270723 #5B1150 #8F1A7E #C323AC #DD46C7

Accessibility & contrast

On white

8.02
#8F1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8F1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F1A7E
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1A7E#FFFFFF#000000##FFFFFF
##8F1A7E1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194581
Deuteranopia (green-blind)
#47567B
Tritanopia (blue-blind)
#96254C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8f1a7e;
/* rgb */ color: rgb(143, 26, 126);
/* oklch */ color: oklch(45.7% 0.183 335.1);
Tailwind
colors: {
  custom: {
    50: '#b466a4',
    500: '#8f1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #8f1a7e;
$custom-light: #b466a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1a7e",
  "rgb": {
    "r": 143,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 308.718,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45679,
    "c": 0.18284,
    "h": 335.1
  },
  "luminance": 0.08085
}

Semantic roles & 50–950 ramp

primary
#8F1A7E
secondary
#46BF58
accent
#EC553C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #8F1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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