#8C287D#8C287D

#8C287D is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.165 H 334.6°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#8C287D
RGBrgb(140, 40, 125)
HSLhsl(309, 56%, 35%)
HSVhsv(309, 71%, 55%)
CMYKcmyk(0%, 71.4%, 10.7%, 45.1%)
CIE-LABlab(35.15, 51.36, -25.96)
CIE-LCHlch(35.15, 57.55, 333.18°)
OKLaboklab(46.27% 0.1494 -0.0709)
OKLCHoklch(46.27% 0.165 334.6)
XYZxyz(15.2758, 8.5750, 20.2487)
Luminance0.0857 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C287D #288C37
analogous
#69288C #8C287D #8C284B
triadic
#8C287D #7D8C28 #287D8C
tetradic
#8C287D #8C6928 #288C37 #284B8C
square
#8C287D #8C6928 #288C37 #284B8C
split-complementary
#8C287D #4B8C28 #288C69
monochromatic
#2D0D28 #5C1A52 #8C287D #BC36A7 #D15EC0

Accessibility & contrast

On white

7.74
#8C287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8C287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C287D
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C287D#FFFFFF#000000##FFFFFF
##8C287D1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27497F
Deuteranopia (green-blind)
#4A587B
Tritanopia (blue-blind)
#93304F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8c287d;
/* rgb */ color: rgb(140, 40, 125);
/* oklch */ color: oklch(46.3% 0.165 334.6);
Tailwind
colors: {
  custom: {
    50: '#b16ba3',
    500: '#8c287d',
    950: '#000000',
  },
}
SCSS
$custom: #8c287d;
$custom-light: #b16ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c287d",
  "rgb": {
    "r": 140,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 309,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46274,
    "c": 0.16535,
    "h": 334.6
  },
  "luminance": 0.08574
}

Semantic roles & 50–950 ramp

primary
#8C287D
secondary
#5AB667
accent
#DF5F49
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8C287D

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

Preview Lab → · Contrast checker → · Palette generator →

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