#8F1B7F#8F1B7F

#8F1B7F is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.183 H 334.7°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8F1B7F
RGBrgb(143, 27, 127)
HSLhsl(308, 68%, 33%)
HSVhsv(308, 81%, 56%)
CMYKcmyk(0%, 81.1%, 11.2%, 43.9%)
CIE-LABlab(34.31, 56.62, -28.50)
CIE-LCHlch(34.31, 63.39, 333.28°)
OKLaboklab(45.8% 0.1651 -0.0781)
OKLCHoklch(45.8% 0.183 334.7)
XYZxyz(15.5506, 8.1572, 20.8301)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1B7F #1B8F2B
analogous
#651B8F #8F1B7F #8F1B45
triadic
#8F1B7F #7F8F1B #1B7F8F
tetradic
#8F1B7F #8F651B #1B8F2B #1B458F
square
#8F1B7F #8F651B #1B8F2B #1B458F
split-complementary
#8F1B7F #458F1B #1B8F65
monochromatic
#280824 #5C1151 #8F1B7F #C225AD #DC48C8

Accessibility & contrast

On white

7.98
#8F1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8F1B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F1B7F
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F1B7F#FFFFFF#000000##FFFFFF
##8F1B7F1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194682
Deuteranopia (green-blind)
#46577C
Tritanopia (blue-blind)
#96274D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8f1b7f;
/* rgb */ color: rgb(143, 27, 127);
/* oklch */ color: oklch(45.8% 0.183 334.7);
Tailwind
colors: {
  custom: {
    50: '#b467a4',
    500: '#8f1b7f',
    950: '#000000',
  },
}
SCSS
$custom: #8f1b7f;
$custom-light: #b467a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1b7f",
  "rgb": {
    "r": 143,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 308.276,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45801,
    "c": 0.18265,
    "h": 334.7
  },
  "luminance": 0.08156
}

Semantic roles & 50–950 ramp

primary
#8F1B7F
secondary
#48BE58
accent
#EB553D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #8F1B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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