#8F128A#8F128A

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

Color values

HEX#8F128A
RGBrgb(143, 18, 138)
HSLhsl(302, 78%, 32%)
HSVhsv(302, 87%, 56%)
CMYKcmyk(0%, 87.4%, 3.5%, 43.9%)
CIE-LABlab(34.21, 60.42, -35.50)
CIE-LCHlch(34.21, 70.08, 329.56°)
OKLaboklab(45.93% 0.1713 -0.0983)
OKLCHoklch(45.93% 0.197 330.2)
XYZxyz(16.1314, 8.1086, 24.7553)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F128A #128F17
analogous
#56128F #8F128A #8F124C
triadic
#8F128A #8A8F12 #128A8F
tetradic
#8F128A #8F5612 #128F17 #124C8F
square
#8F128A #8F5612 #128F17 #124C8F
split-complementary
#8F128A #4C8F12 #128F56
monochromatic
#220421 #590B56 #8F128A #C519BE #E636DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F128A#FFFFFF#000000##FFFFFF
##8F128A1.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)
#00468D
Deuteranopia (green-blind)
#3E5687
Tritanopia (blue-blind)
#952851
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8f128a;
/* rgb */ color: rgb(143, 18, 138);
/* oklch */ color: oklch(45.9% 0.197 330.2);
Tailwind
colors: {
  custom: {
    50: '#b465ac',
    500: '#8f128a',
    950: '#000000',
  },
}
SCSS
$custom: #8f128a;
$custom-light: #b465ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8f128a",
  "rgb": {
    "r": 143,
    "g": 18,
    "b": 138
  },
  "hsl": {
    "h": 302.4,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45931,
    "c": 0.19747,
    "h": 330.2
  },
  "luminance": 0.08107
}

Semantic roles & 50–950 ramp

primary
#8F128A
secondary
#3AC33F
accent
#F43B34
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#120610
muted
#817A7F

Preview Lab

Preview with #8F128A

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

Preview Lab → · Contrast checker → · Palette generator →

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