#8F1A7F#8F1A7F

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

Color values

HEX#8F1A7F
RGBrgb(143, 26, 127)
HSLhsl(308, 69%, 33%)
HSVhsv(308, 82%, 56%)
CMYKcmyk(0%, 81.8%, 11.2%, 43.9%)
CIE-LABlab(34.22, 56.89, -28.65)
CIE-LCHlch(34.22, 63.70, 333.27°)
OKLaboklab(45.74% 0.1659 -0.0785)
OKLCHoklch(45.74% 0.184 334.7)
XYZxyz(15.5281, 8.1122, 20.8226)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1A7F #1A8F2A
analogous
#641A8F #8F1A7F #8F1A44
triadic
#8F1A7F #7F8F1A #1A7F8F
tetradic
#8F1A7F #8F641A #1A8F2A #1A448F
square
#8F1A7F #8F641A #1A8F2A #1A448F
split-complementary
#8F1A7F #448F1A #1A8F64
monochromatic
#270723 #5B1151 #8F1A7F #C323AD #DD46C9

Accessibility & contrast

On white

8.01
#8F1A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F1A7F
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1A7F#FFFFFF#000000##FFFFFF
##8F1A7F1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184682
Deuteranopia (green-blind)
#46567C
Tritanopia (blue-blind)
#96264C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8f1a7f;
/* rgb */ color: rgb(143, 26, 127);
/* oklch */ color: oklch(45.7% 0.184 334.7);
Tailwind
colors: {
  custom: {
    50: '#b466a4',
    500: '#8f1a7f',
    950: '#000000',
  },
}
SCSS
$custom: #8f1a7f;
$custom-light: #b466a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1a7f",
  "rgb": {
    "r": 143,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 308.205,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45735,
    "c": 0.18354,
    "h": 334.7
  },
  "luminance": 0.08111
}

Semantic roles & 50–950 ramp

primary
#8F1A7F
secondary
#46BF57
accent
#EC543C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #8F1A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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