#8F1B7D#8F1B7D

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

Color values

HEX#8F1B7D
RGBrgb(143, 27, 125)
HSLhsl(309, 68%, 33%)
HSVhsv(309, 81%, 56%)
CMYKcmyk(0%, 81.1%, 12.6%, 43.9%)
CIE-LABlab(34.20, 56.32, -27.42)
CIE-LCHlch(34.20, 62.64, 334.04°)
OKLaboklab(45.69% 0.165 -0.0749)
OKLCHoklch(45.69% 0.181 335.6)
XYZxyz(15.4215, 8.1056, 20.1504)
Luminance0.0810 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F1B7D #1B8F2D
analogous
#671B8F #8F1B7D #8F1B43
triadic
#8F1B7D #7D8F1B #1B7D8F
tetradic
#8F1B7D #8F671B #1B8F2D #1B438F
square
#8F1B7D #8F671B #1B8F2D #1B438F
split-complementary
#8F1B7D #438F1B #1B8F67
monochromatic
#280823 #5C1150 #8F1B7D #C225AA #DC48C5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F1B7D#FFFFFF#000000##FFFFFF
##8F1B7D1.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)
#1C4680
Deuteranopia (green-blind)
#47567A
Tritanopia (blue-blind)
#97254B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8f1b7d;
/* rgb */ color: rgb(143, 27, 125);
/* oklch */ color: oklch(45.7% 0.181 335.6);
Tailwind
colors: {
  custom: {
    50: '#b467a3',
    500: '#8f1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #8f1b7d;
$custom-light: #b467a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f1b7d",
  "rgb": {
    "r": 143,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 309.31,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45691,
    "c": 0.18123,
    "h": 335.6
  },
  "luminance": 0.08104
}

Semantic roles & 50–950 ramp

primary
#8F1B7D
secondary
#48BE5A
accent
#EB583D
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #8F1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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