#8C287C#8C287C

#8C287C is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.165 H 335.1°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#8C287C
RGBrgb(140, 40, 124)
HSLhsl(310, 56%, 35%)
HSVhsv(310, 71%, 55%)
CMYKcmyk(0%, 71.4%, 11.4%, 45.1%)
CIE-LABlab(35.10, 51.20, -25.42)
CIE-LCHlch(35.10, 57.16, 333.60°)
OKLaboklab(46.22% 0.1493 -0.0694)
OKLCHoklch(46.22% 0.165 335.1)
XYZxyz(15.2123, 8.5496, 19.9139)
Luminance0.0855 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C287C #288C38
analogous
#6A288C #8C287C #8C284A
triadic
#8C287C #7C8C28 #287C8C
tetradic
#8C287C #8C6A28 #288C38 #284A8C
square
#8C287C #8C6A28 #288C38 #284A8C
split-complementary
#8C287C #4A8C28 #288C6A
monochromatic
#2D0D28 #5C1A52 #8C287C #BC36A6 #D15EBE

Accessibility & contrast

On white

7.75
#8C287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8C287C
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C287C#FFFFFF#000000##FFFFFF
##8C287C1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28497E
Deuteranopia (green-blind)
#4A587A
Tritanopia (blue-blind)
#932F4E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8c287c;
/* rgb */ color: rgb(140, 40, 124);
/* oklch */ color: oklch(46.2% 0.165 335.1);
Tailwind
colors: {
  custom: {
    50: '#b16ba2',
    500: '#8c287c',
    950: '#000000',
  },
}
SCSS
$custom: #8c287c;
$custom-light: #b16ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c287c",
  "rgb": {
    "r": 140,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 309.6,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46221,
    "c": 0.16459,
    "h": 335.1
  },
  "luminance": 0.08548
}

Semantic roles & 50–950 ramp

primary
#8C287C
secondary
#5AB668
accent
#DF6149
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8C287C

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

Preview Lab → · Contrast checker → · Palette generator →

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