#8D287B#8D287B

#8D287B is a mid, vivid pink. Relative luminance 0.086; OKLCH L 46.3% C 0.164 H 336.0°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#8D287B
RGBrgb(141, 40, 123)
HSLhsl(311, 56%, 35%)
HSVhsv(311, 72%, 55%)
CMYKcmyk(0%, 71.6%, 12.8%, 44.7%)
CIE-LABlab(35.23, 51.30, -24.59)
CIE-LCHlch(35.23, 56.89, 334.39°)
OKLaboklab(46.33% 0.1502 -0.067)
OKLCHoklch(46.33% 0.164 336)
XYZxyz(15.3187, 8.6117, 19.5905)
Luminance0.0861 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D287B #288D3A
analogous
#6C288D #8D287B #8D2848
triadic
#8D287B #7B8D28 #287B8D
tetradic
#8D287B #8D6C28 #288D3A #28488D
square
#8D287B #8D6C28 #288D3A #28488D
split-complementary
#8D287B #488D28 #288D6C
monochromatic
#2E0D28 #5D1A51 #8D287B #BD36A5 #D15EBD

Accessibility & contrast

On white

7.71
#8D287B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8D287B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D287B
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D287B#FFFFFF#000000##FFFFFF
##8D287B1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29497D
Deuteranopia (green-blind)
#4B5879
Tritanopia (blue-blind)
#942F4E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8d287b;
/* rgb */ color: rgb(141, 40, 123);
/* oklch */ color: oklch(46.3% 0.164 336.0);
Tailwind
colors: {
  custom: {
    50: '#b26ba1',
    500: '#8d287b',
    950: '#000000',
  },
}
SCSS
$custom: #8d287b;
$custom-light: #b26ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#8d287b",
  "rgb": {
    "r": 141,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 310.693,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46327,
    "c": 0.16447,
    "h": 336
  },
  "luminance": 0.0861
}

Semantic roles & 50–950 ramp

primary
#8D287B
secondary
#5AB76B
accent
#DF6349
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8D287B

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

Preview Lab → · Contrast checker → · Palette generator →

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