#8C2D87#8C2D87

#8C2D87 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.3% C 0.167 H 330.0°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#8C2D87
RGBrgb(140, 45, 135)
HSLhsl(303, 51%, 36%)
HSVhsv(303, 68%, 55%)
CMYKcmyk(0%, 67.9%, 3.6%, 45.1%)
CIE-LABlab(36.37, 51.06, -30.25)
CIE-LCHlch(36.37, 59.35, 329.35°)
OKLaboklab(47.33% 0.1445 -0.0833)
OKLCHoklch(47.33% 0.167 330)
XYZxyz(16.1267, 9.2027, 23.8439)
Luminance0.0920 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2D87 #2D8C32
analogous
#622D8C #8C2D87 #8C2D58
triadic
#8C2D87 #878C2D #2D878C
tetradic
#8C2D87 #8C622D #2D8C32 #2D588C
square
#8C2D87 #8C622D #2D8C32 #2D588C
split-complementary
#8C2D87 #588C2D #2D8C62
monochromatic
#2F0F2E #5E1E5A #8C2D87 #BA3CB4 #CE66C8

Accessibility & contrast

On white

7.39
#8C2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8C2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2D87
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2D87#FFFFFF#000000##FFFFFF
##8C2D871.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244D8A
Deuteranopia (green-blind)
#475A85
Tritanopia (blue-blind)
#913856
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8c2d87;
/* rgb */ color: rgb(140, 45, 135);
/* oklch */ color: oklch(47.3% 0.167 330.0);
Tailwind
colors: {
  custom: {
    50: '#b16eaa',
    500: '#8c2d87',
    950: '#000000',
  },
}
SCSS
$custom: #8c2d87;
$custom-light: #b16eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2d87",
  "rgb": {
    "r": 140,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 303.158,
    "s": 51.351,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47325,
    "c": 0.16681,
    "h": 330
  },
  "luminance": 0.09201
}

Semantic roles & 50–950 ramp

primary
#8C2D87
secondary
#60B465
accent
#DB544D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8C2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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