#8D287F#8D287F

#8D287F is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.167 H 334.1°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#8D287F
RGBrgb(141, 40, 127)
HSLhsl(308, 56%, 35%)
HSVhsv(308, 72%, 55%)
CMYKcmyk(0%, 71.6%, 9.9%, 44.7%)
CIE-LABlab(35.43, 51.94, -26.77)
CIE-LCHlch(35.43, 58.43, 332.73°)
OKLaboklab(46.54% 0.1506 -0.0732)
OKLCHoklch(46.54% 0.167 334.1)
XYZxyz(15.5742, 8.7139, 20.9363)
Luminance0.0871 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D287F #288D36
analogous
#68288D #8D287F #8D284C
triadic
#8D287F #7F8D28 #287F8D
tetradic
#8D287F #8D6828 #288D36 #284C8D
square
#8D287F #8D6828 #288D36 #284C8D
split-complementary
#8D287F #4C8D28 #288D68
monochromatic
#2E0D29 #5D1A54 #8D287F #BD36AA #D15EC1

Accessibility & contrast

On white

7.66
#8D287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8D287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D287F
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D287F#FFFFFF#000000##FFFFFF
##8D287F1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264A81
Deuteranopia (green-blind)
#4A597D
Tritanopia (blue-blind)
#943150
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8d287f;
/* rgb */ color: rgb(141, 40, 127);
/* oklch */ color: oklch(46.5% 0.167 334.1);
Tailwind
colors: {
  custom: {
    50: '#b26ca4',
    500: '#8d287f',
    950: '#000000',
  },
}
SCSS
$custom: #8d287f;
$custom-light: #b26ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d287f",
  "rgb": {
    "r": 141,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 308.317,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46539,
    "c": 0.16748,
    "h": 334.1
  },
  "luminance": 0.08713
}

Semantic roles & 50–950 ramp

primary
#8D287F
secondary
#5AB767
accent
#DF5E49
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D287F

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

Preview Lab → · Contrast checker → · Palette generator →

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