#8F1F8A#8F1F8A

#8F1F8A is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.187 H 330.1°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#8F1F8A
RGBrgb(143, 31, 138)
HSLhsl(303, 64%, 34%)
HSVhsv(303, 78%, 56%)
CMYKcmyk(0%, 78.3%, 3.5%, 43.9%)
CIE-LABlab(35.31, 57.21, -33.75)
CIE-LCHlch(35.31, 66.42, 329.47°)
OKLaboklab(46.72% 0.1621 -0.0932)
OKLCHoklch(46.72% 0.187 330.1)
XYZxyz(16.4051, 8.6559, 24.8466)
Luminance0.0866 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1F8A #1F8F24
analogous
#5C1F8F #8F1F8A #8F1F52
triadic
#8F1F8A #8A8F1F #1F8A8F
tetradic
#8F1F8A #8F5C1F #1F8F24 #1F528F
square
#8F1F8A #8F5C1F #1F8F24 #1F528F
split-complementary
#8F1F8A #528F1F #1F8F5C
monochromatic
#2A0929 #5D1459 #8F1F8A #C12ABB #D94FD3

Accessibility & contrast

On white

7.69
#8F1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8F1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F1F8A
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1F8A#FFFFFF#000000##FFFFFF
##8F1F8A1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D498D
Deuteranopia (green-blind)
#425887
Tritanopia (blue-blind)
#952F54
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8f1f8a;
/* rgb */ color: rgb(143, 31, 138);
/* oklch */ color: oklch(46.7% 0.187 330.1);
Tailwind
colors: {
  custom: {
    50: '#b369ac',
    500: '#8f1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #8f1f8a;
$custom-light: #b369ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1f8a",
  "rgb": {
    "r": 143,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 302.679,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.46717,
    "c": 0.18698,
    "h": 330.1
  },
  "luminance": 0.08655
}

Semantic roles & 50–950 ramp

primary
#8F1F8A
secondary
#4EBC53
accent
#E74840
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8F1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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